Hello,

I'm looking for advice on a better solution to my problem. In short, I need to keep character references unresolved. The Xerces SAXParser object may have a LexicalHandler and ContentHandler attached and with those I can easily catch the entities and push them through. The same solution is also possible for the SAXResult object, but not the SAXSource for understandable reasons. My current solution requires a custom DOM builder using a SAX parser, ContentHandler and a LexicalHander object. Using this I can supply the DOM without resolved character references as a DOMSource object to the Transformer and hopefully transform the document without a problem.

I find this solution a little bloated. Hopefully somebody may be able to point me in a better direction. Thanks in advance for your advice!
--
*Anthony Rabaa*
Software Developer & Network Administrator
AMCon Research Inc.
Ottawa, Ontario, Canada
http://www.amconresearch.net




Reply via email to