>when xerces writes this out to a file, I invariably get:
>"<someText>&amp;#x20AC;</someText>"

How are you creating the node? If you write the string "&#x20AC;" to any of
the common XML APIs, it is presumed that you want that value to appear in
the infoset, and to achieve that the ampersand must be escaped when this is
serialized.

If you just put the x20AC character into the string, the APIs assume you
want that character in the infoset... and the serializer will convert that
to the character reference you intended.

Bascially: If you're working with the APIs, you're working with content.
Let Xerces deal with converting that content to and from XML syntax.

______________________________________
Joe Kesselman, IBM Next-Generation Web Technologies: XML, XSL and more.
"The world changed profoundly and unpredictably the day Tim Berners Lee
got bitten by a radioactive spider." -- Rafe Culpin, in r.m.filk


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

Reply via email to