Neil Graham wrote:
Hi Ams,
Before there were features which told the parser to ignore loading external entities and subsets, the standard trick to achieve this behaviour was to register an EntityResolver which returned an InputSource containing an empty stream (e.g., a StringReader constructed with an empty string). Returning null triggers the parser's default entity resolution behaviour, as you've found.
Aha! That's how the "do-nothing" effect is achieved. Not exactly obvious :-) Thank you very-very much.
The features you are referring to, are they new? I don't recall seeing them mentioned, but I am still on the version 2.2.1.
Regards,
-a
I think the FAQ you quote was written with this practice in mind. It could probably do with a bit of editing to make this more explicit. Once you do this, though, you should get the behaviour you're after.
Hope that helps, Neil Neil Graham XML Parser Development IBM Toronto Lab Phone: 905-413-3519, T/L 969-3519 E-mail: [EMAIL PROTECTED]
--
Aaron Stromas | "Tik-tik-tik!!!... ja, Pantani is weg..." mailto:[EMAIL PROTECTED] | BRTN commentator +1 (301) 493 4933 | L'Alpe d'Huez http://www.izoard.com | 1995 Tour de France
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
