Hi Jeff, Jeff Wolkenhauer <[email protected]> writes:
> I've done a lot of looking at the API and Googling. I've tried setting my > handler as the LexicalHandler and implementing startEntity and endEntity, > but those methods never get called. These are not called for built-in entities such as &, <, etc. > Grasping at straws, I've tried > parser->setFeature(XMLUni::fgXercesDisableDefaultEntityResolution, true); This is for external resource resolution (which are also called entities). > Is there a way to have the parser leave the predefined entities > untranslated? I don't think there is a way. Your best bet is probably to escape them back before passing the data on. Boris -- Boris Kolpackov, Code Synthesis http://codesynthesis.com/~boris/blog Open-source XML data binding for C++ http://codesynthesis.com/products/xsd XML data binding for embedded systems http://codesynthesis.com/products/xsde Command line interface to C++ compiler http://codesynthesis.com/projects/cli
