Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
XML and Related Technologies
How to preserve linefeed in XML file
Joined: Feb 16, 2008
Mar 07, 2008 07:55:00
I have a XML file looks like:
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
Joined: Oct 14, 2005
Mar 07, 2008 09:00:00
Now try it with:
<Content>Hello everyone, how are you doing today?<Reply>Not so good.</Reply> </Content>
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:
subject: How to preserve linefeed in XML file
read xml file
reading xml from file
XSL Categorize by Inner property values
HFSJ book: Cookie example chapter 6 plz Help :(
XML file parsing in Java using SAX
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014