You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-dev@xerces.apache.org by Lisa Retief <li...@exinet.co.za> on 2000/09/11 17:41:05 UTC
Maintaining entities when parsing and serializing
Hi,
I am using Xerces-J 1.1.2 to parse and serialize a dom document using the
following code.
ByteArrayOutputStream b = new ByteArrayOutputStream();
XMLSerializer serializer = (XMLSerializer)
factory.makeSerializer(b, new OutputFormat());
serializer.asDOMSerializer().serialize(doc);
When I do this, anything that was "´" in the source becomes "´" in the
resulting output. How do I prevent this expansion from happening, or at
least reverse it for the serialization process?
Thanks in advance,
Lisa