Sun, 13 Sep 2009 17:21:02 +0530, /Sagara Gunathunga/:
On Sun, Sep 13, 2009 at 4:45 PM, Stanimir Stamenkov <s7a...@netscape.net> wrote:

http://xerces.apache.org/xerces2-j/javadocs/api/javax/xml/validation/SchemaFactory.html#setResourceResolver(org.w3c.dom.ls.LSResourceResolver)

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.

Yes, the classes come from different libraries but their purpose is the same and creating an adapter or just implementing LSResourceResolver should be pretty straightforward.

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 .

I don't get your point here. SchemaFactory is part of JAXP 1.3 as the DOM Level 3 LS APIs are. If you're using SchemaFactory the JAXP implementation must implement it so it supports LSResourceResolver as it is a property of the SchemaFactory.

--
Stanimir

---------------------------------------------------------------------
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