You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xerces.apache.org by Boris Kolpackov <bo...@codesynthesis.com> on 2010/07/04 21:43:08 UTC
Re: Passing through predefined entities
Hi Jeff,
Jeff Wolkenhauer <je...@gmail.com> 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