File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java Interview Guide
this week in the
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
XML file parsing in Java using SAX
read xml file
reading xml from file
HFSJ book: Cookie example chapter 6 plz Help :(
XSL Categorize by Inner property values
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015