Hi,

I don't think you can see a newline in an attribute value.
As per the XML spec, attribute values go thru a process called whitespace 
normalization, which will remove the newline. It's the XML parser's part in 
the play to do this, SAXReader only intercepts messages from the parser.
I don't think you'll find a parser that will offer an option to skip the 
attribute normalization.

Element contents is a more suitable place for text 
where you want whitespace preserved.

Jan


Dne pá 8. srpna 2003 16:41 Srinivas Maram napsal(a):
| Hi,
|
| I have an Attribute of an element whose value contains newLine characters.
| When I read this dom into memory, the dom does not have the newLine
| characters.
|
| Is there a property or configuration on SAXReader that I can set for this
| to be retained.
|
| Thanks for your help.
|
| Thanks,
| -Sri
|
|
| -------------------------------------------------------
| This SF.Net email sponsored by: Free pre-built ASP.NET sites including
| Data Reports, E-commerce, Portals, and Forums are available now.
| Download today and enter to win an XBOX or Visual Studio .NET.
| http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
| _______________________________________________
| dom4j-dev mailing list
| [EMAIL PROTECTED]
| https://lists.sourceforge.net/lists/listinfo/dom4j-dev



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
dom4j-dev mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/dom4j-dev

Reply via email to