File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to preserve linefeed in XML file

 
jonathan ford
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a XML file looks like:
<Content>Hello
everyone, how
are you
doing today?
</Content>
when I use IE to open the file, it looks like:
<Content>Hello everyone, how are you doing today?</Content>

Anyone can provide suggestion? Thanks
 
Paul Clapham
Sheriff
Pie
Posts: 20183
25
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Now try it with:See what's happening? IE is "pretty-printing" the XML. It will indent child elements on a new line, for example, and that isn't consistent with preserving whitespace within text nodes.

I can't see where this would be a real problem. You were just curious, right?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic