喜悦国际村 专业PHP开发者社区's Archiver

liqin198725 发表于 2010-1-30 07:39 PM

php解析xml文档问题

把编辑框中的
This is a test!
This is a test!
This is a test!

读入一个xml文件(用JDOM自动生成的XML文件),
文件中显示<text>This is a test! This is a test! This is a test!</text> (原来三行的文本变成了一行)
在PHP中 获得<text>标签中的内容,并用echo输出
输出的也是 This is a test! This is a test! This is a test!

怎样解析才能使输出的内容与编辑框的内容保持一至?
xml中的换行是怎么存储的?

希望大侠们帮帮忙。感激不尽!!  :)

页: [1]

Powered by Discuz! Archiver 7.0.0  © 2001-2009 Comsenz Inc.