I don't think resourceResolver is help out for me.

1.) It take LSResourceResolver as a argument but i want to use
org.xml.sax.EntityResolver.  Even though LSResourceResolver based on
org.xml.sax.EntityResolver, it doesn't  implements EntityResolver.

2.)  May be i can create a adapter class for point-1 but again
LSResourceResolver  returns  LSInput while EntityResolver returns
InputSource , AFAIK in here only possible way is fill LSInput object
manually from InputSource properties.

3.) This approach is based on DOM L3 Spec still some of the parsers
doesn't support for this it would be nice if i can use Sax
EntityResolver here .

Thanks,

On Sun, Sep 13, 2009 at 4:45 PM, Stanimir Stamenkov <s7a...@netscape.net> wrote:
> 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
>
>



-- 
Sagara Gunathunga

Blog - http://ssagara.blogspot.com
Web - http://people.apache.org/~sagara/

---------------------------------------------------------------------
To unsubscribe, e-mail: j-users-unsubscr...@xerces.apache.org
For additional commands, e-mail: j-users-h...@xerces.apache.org

Reply via email to