[EMAIL PROTECTED] wrote:
> I get some strange things when I try to parse the next XML with the Xerces
> parser:
> 
> <STTM>&amp;</STTM>
> 
> The result is <STTM>&amp;</STTM> (just the same) instead of <STTM>&</STTM>.

The '<' and '&' characters must be escaped in character data using
predefined entities [1].

What do you mean by "the result"? Are you parsing using DOM/SAX and
looking at the document in memory? Are you using serializer (which one?)
and this is what you see in the output? 

By definition, serializer must escape '<' and '&' characters. However,
other predefined entities (&gt;, &apos;, and &quot;) maybe be used by
the serializer.

[1] http://www.w3.org/TR/REC-xml#character-data

Thank you,
-- 
Elena Litani / IBM Toronto

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

Reply via email to