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 Jose Correia <jo...@exinet.co.za> on 2001/01/19 07:18:31 UTC

Expanded entities in XMLSerializer

Hi

I'm triying to stop character entities from expanding to no
avail when I parse an xml document and I then serialize it as a Dom
document. Now is there a way that once they are expanded to revert them
to what they were or is there a way not to expand them at all? Using
either the OutputFormat or XMLSerializer.

This is an example:

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="test.css" type="text/css"?>
<html>
<heading>The meaning of nothing</heading>
<para>Martin Heidegger asked one basic question, "What is it
&#180;to&#180; be?"
</para>
</html>

If I parse the document using the xerces DOMParser and then serialize
it, it then converts it to:

<para>Martin Heidegger asked one basic question, &quot;What is it ´to´
be?&quot;

Thanks in advance
Jose Correia



                \=/,         _-===-_-===-_-===-_-===-_-==-_
                |  @___oo  (                               )_
      /\  /\   / (___,,,}_--=                                )
     ) /^\) ^\/ _)        =_"Positive thinking - a great way  )
     )   /^\/   _)         (_        to face life"             )
     )   _ /  / _)          (        Jose Correia            )
 /\  )/\/ ||  | )_)          (_    jose@exinet.co.za        )
<  >      |(,,) )__)           (   jcorreia@global.co.za    )
 ||      /    \)___)\           (_                        _)
 | \____(      )___) )___          -==-_______-=====-___==
  \______(_______;;; __;;;



---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-j-dev-help@xml.apache.org