No I am running it through a SAX parser. I didn't think passing a char[] directly to my own method would magically convert the entities.

Elliotte Harold wrote:
Joseph Shraibman wrote:

I have a SAX ContentHandler. I'm passing it an xml string with entities in it, but when the characters() method is called the entities are still escaped. How do I force sax to convert the entities into chars? I'm using xerces 2.6.2



It sounds like you're not passing the string through a parser first. Is that right? Nothing in ContentHandler decodes entities. The parser decodes them, and then it calls the characters() method with the decoded text.



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



Reply via email to