At the time I wrote the code I wanted to have an special element factory for 
some
special syntax and so I needed to explicitly create an XmlDocument.  I've 
created static
method versions so I could probably forgo the subclassed Elements now.

What's the latest crimson.jar?


Edwin Goei wrote:

> 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
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to