Kevin Steppe wrote:
> 
> Edwin,
> 
> I know this is a bit slow in coming but -- I noticed that in the section 
> where the
> properties file isn't read I used new XMLDocument(...) directly.  Later I use
> DocumentBuilderFactory and errors at that point read from the properties file.
> Without having looked into the code, I'm guessing the properties are read in 
> the
> factory somewhere.  This is why I don't like using a properties file for error
> messages.

Did you download the latest crimson.jar from the website and tried your
program with it?  See http://xml.apache.org/dist/crimson/.

To create a new DOM Document object, I would recommend doing something
like this:

DOMImplementation domImplementation =
DocumentBuilderFactory.newInstance().newDocumentBuilder().getDOMImplementation();

Then once to have a DOM Level 2 DOMImplementation instance, you can
create a DocumentType node and create a Document.

-Edwin

Reply via email to