[
Lists Home |
Date Index |
Thread Index
]
Jessica P. Hekman wrote:
> On Thu, 6 Nov 2003, Jirka Kosek wrote:
>
>
>>> SAXParserFactory factory = SAXParserFactory.newInstance();
>>> SAXParser parser = factory.newSAXParser();
>>> XMLReader xmlReader = parser.getXMLReader();
>>> MyEntityResolver er = new MyEntityResolver();
>>> xmlReader.setEntityResolver(er);
>>> parser.parse (new InputSource (...), handler);
Now I see. You must call parse method on xmlReader which knows about
your entity resolver, not on SAXParser:
xmlReader.parse(...)
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz
S/MIME Cryptographic Signature
|