[jdom-interest] setting SAXParser properties?

Travers Waker traversw at innoforge.com
Wed Oct 24 03:28:04 PDT 2001


Hi everyone.

The Xerces documentation says the following:

<XercesDoc>

To set a property on either org.apache.xerces.parsers.SAXParser or org.apache.xerces.parsers.DOMParser, you should use the
SAX2 method setProperty(String,Object). To query a property, use the SAX2 method getProperty(String).

For example, to set the document factory by name:

DOMParser p=new DOMParser();
try

  p.setProperty("http://apache.org/xml/properties/dom/document-class-name",
                "org.apache.xerces.dom.DocumentImpl");
} catch (SAXException e) {
  System.out.println("error in setting up parser property");
}

</XercesDoc>

Can I do this from JDOM?  I can't see a method in SAXBuilder that gives me access to the underlying SAXParser.

Thanks for any help.

Travers





More information about the jdom-interest mailing list