bimba <[EMAIL PROTECTED]> wrote on 01/03/2007 09:04:43 AM:

> Hi,
> 
> I am currently using the latest xercesImpl.jar and xml-apis.jar
> 
> I have an org.w3c.dom.Document object, which I need to serialize.
> I was using an old version of xerces-J_1.4.0.jar and the 
> XMLSerializer to serialize and it was working fine.
> 
> With the new xercesImpl.jar and xml-apis.jar I am having problems since 
the 
> XMLSerializer is giving issues.
> 
> The carriage return character (\r) is getting converted to "&#xd;"  
> instead of being interpreted as carriage return.
> 
> Also since XMLSerializer is now deprecated, I changed to use the 
LSSerializer.
> I am attaching a small code snippet which I am using.
> 
> Please let me know if I am missing out any thing.

Carriage return (CR) must be escaped in order to survive the round trip 
through serialization and parsing. If the older serializer wasn't doing 
this it had a bug. See these recent posts [1][2] on the xml-dev mailing 
list for more info.

> Regards,
> Bimba
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

[1] http://lists.xml.org/archives/xml-dev/200701/msg00001.html
[2] http://lists.xml.org/archives/xml-dev/200701/msg00011.html

Michael Glavassevich
XML Parser Development
IBM Toronto Lab
E-mail: [EMAIL PROTECTED]
E-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to