Re: Fast Nodes

2001-12-21 Thread Tobias McNulty
And then just set the document-class-name property on the parser so that it uses your document class for making the DOM nodes as it parses. But depending on what you want to do, you may have to be careful about what you override, etc. DocumentBuilder.newDocument() doesn't seem to use my custom Docu

RE: Fast Nodes

2001-12-19 Thread Craig Collings
- From: Andy Clark [mailto:[EMAIL PROTECTED] Sent: Thursday, 13 December 2001 11:09 p.m. To: [EMAIL PROTECTED] Subject: Re: Fast Nodes Tobias McNulty wrote: > So basically there isn't anything I can do to extend Xerces other > than going into the its source and creating a custom > crea

Re: Fast Nodes

2001-12-14 Thread Tobias McNulty
Title: Re: Fast Nodes From http://xml.apache.org/xerces2-j/properties.html: " The DocumentBuilderFactory interface contains a setAttribute(String,Object) method which may provide a means to set features and properties on the underyling parser. However, it cannot be relied upon. Therefore

Re: Fast Nodes

2001-12-14 Thread Tobias McNulty
I am not clear on where this property is set. I searched the API a bit and found the DocumentBuilderFactory.setProperty method. Is this what I'm looking for? If so, where can I get a list of the valid property names? I will be interested in overriding the DocumentImpl and ElementImpl classe

Re: Fast Nodes

2001-12-14 Thread Tobias McNulty
And then just set the document-class-name property on the parser so that it uses your document class for making the DOM nodes as it parses. But depending on what you want to do, you may have to be careful about what you override, etc. Hi Andy, Wow, I was not aware that something like this was possi

Re: Fast Nodes

2001-12-14 Thread Andy Clark
Tobias McNulty wrote: > So basically there isn't anything I can do to extend Xerces other > than going into the its source and creating a custom > createNodeIterator function? No, there's nothing stopping you from extending the Apache DOM implementation. And you don't have to deal with all of the

RE: Fast Nodes

2001-12-13 Thread Tobias McNulty
Alternatively, check out the tiny, elegant, fast NanoXml at http://nanoxml.sourceforge.net/ No problems extending that. Unfortunately I need something that conforms to the w3c DOM spec that I can use with Xalan or some other XSL/XPath transformer. -- Tobias McNulty Data Description, Inc. 840 Hansh

RE: Fast Nodes

2001-12-13 Thread Tobias McNulty
So basically there isn't anything I can do to extend Xerces other than going into the its source and creating a custom createNodeIterator function? Yes, I've tried this too. It would very useful to be able to type elements correctly in a java environment. It makes the handling easier and safer.

RE: Fast Nodes

2001-12-12 Thread Craig Collings
Yes, I've tried this too. It would very useful to be able to type elements correctly in a java environment. It makes the handling easier and safer. Unfortunately, the xerces implementations use a complex inheritance structure for their elements. The "deferred Node" implementations allow DOM nodes n