You are viewing a plain text version of this content. The canonical link for it is here.
Posted to j-users@xerces.apache.org by Kevin Steppe <ks...@pacbell.net> on 2001/02/12 19:39:00 UTC

Re: Error from Crimson

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.

Kevin


Edwin Goei wrote:

> Kevin Steppe wrote:
> >
> > Thanks.  What should I be doing to ensure that the properties file gets read
> > properly?
>
> First of all, where are you getting crimson from?  The latest code
> should not have this problem.  The latest code is available from CVS in
> the /xml-crimson repository (not the one under /xml-contrib).
>
> I also just quickly created a crimson-1.1ea2.zip file and put it at
> http://xml.apache.org/dist/crimson/ for anyone to download until some
> misc issues get sorted out.  I'm in the middle of getting a release out
> at work so I'll work on cleaning things up later.
>
> Could you test it with the binary version and if it still does not work
> send me a simple test program?
>
> -Edwin
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: xerces-j-dev-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-dev-help@xml.apache.org


Re: Error from Crimson

Posted by Edwin Goei <Ed...@eng.sun.com>.
Kevin Steppe wrote:
> 
> 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?

The latest version is what you get when building from the CVS
repository.  But something that is pretty close to that which is
pre-built, you can get from:

http://xml.apache.org/dist/crimson/

-Edwin

Re: Error from Crimson

Posted by Kevin Steppe <ks...@pacbell.net>.
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: xerces-j-user-unsubscribe@xml.apache.org
> For additional commands, e-mail: xerces-j-user-help@xml.apache.org


Re: Error from Crimson

Posted by Edwin Goei <Ed...@eng.sun.com>.
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