[jdom-interest] Line feed parsing

Jason Hunter jhunter at acm.org
Mon Dec 10 13:38:56 PST 2001


That's behavior mandated by the XML spec.  Check the section on
attribute whitespace normalization.

-jh-

Li Zhao wrote:
> 
> Not quite familiar with jdom, need some help from you
> experts. I have a probolem for outputting: There is an
> attribute value, which is taken from a TextArea with
> line feed ("Test\nGood"). The line feed seems not
> converted properly, because what I see in the XML file
> is something like
> <tag>xmi.id="_1.2" description="Test
> Good"/>
> Should the line feed be converted to something like
> "&#10;" ?. Because when it is read back, the line feed
> is replaced with a white space and it becomes "Test
> Good".
> 
> Any ideas? Thanks in advance.
> 
> Jack
> 
> __________________________________________________
> Do You Yahoo!?
> Send your FREE holiday greetings online!
> http://greetings.yahoo.com
> _______________________________________________
> To control your jdom-interest membership:
> http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhost.com



More information about the jdom-interest mailing list