OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] setEntityResolver() not setting entity resolver

[ 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





 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS