[jdom-interest] Manifest

John Caron caron at unidata.ucar.edu
Mon Oct 25 19:01:52 PDT 2004

Hi all:

im trying to do local schema (entity) resolution with JDOM 1.0, eg:  

    org.jdom.SAXBuilder builder = new SAXBuilder( true);
    builder.setEntityResolver( new MyEntityResolver());

It seems that MyEntityResolver never gets called.

I was able to so this when working directly with JAXP, eg:

    javax.xml.parsers.DocumentBuilderFactory docBuilderFactory = 

    // try to get schema validation
    docBuilderFactory.setAttribute(JAXP_SCHEMA_LANGUAGE, W3C_XML_NAMESPACE);
    docBuilderFactory.setAttribute(JAXP_SCHEMA_SOURCE, new String[] { 
    javax.xml.parsers.DocumentBuilder  b = 
    b.setEntityResolver(new XMLEntityResolver());
    b.setErrorHandler(new MyErrorHandler());

is there an equivilent set of calls, so that i can use JDOM directly, 
instead of javax.xml.parsers.DocumentBuilder ?
Is there a different way to get local entity resolution? I want to get 
the schema from my jar file instead of  making a network call.


More information about the jdom-interest mailing list