Sun, 13 Sep 2009 15:52:18 +0530, /Sagara Gunathunga/:
As we set org.xml.sax.EntityResolver to the DocumentBuilder using
DocumentBuilder#setEntityResolver(entityResolver) method, is there any
way to provide a EntityResolver to the SchemaFactory so that it will
utilize EntityResolver when we call the
schemaFactory#newSchema(schemaSources) method ?
To clarify my scenario, every time my program reading Schema over the
Net (e.g http://www.w3.org/2007/03/wsdl/wsdl20.xsd ) this cause in to
performance problem and also some exceptions in offline mode, to get
rid of this I want to use EntityResolver with SchemaFactory .
I guess you just need to set 'resourceResolver' of the SchemaFactory:
http://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/validation/SchemaFactory.html#setResourceResolver(org.w3c.dom.ls.LSResourceResolver)
--
Stanimir
---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-users-h...@xerces.apache.org