Re: Using DOMParser to produce a non-Xerces Document

2001-04-14 Thread K. Ari Krupnikov
Andy Clark wrote: > > I figured that thread was deep enough... ;) > > Ari wrote: > > Is there a reason both versions of DOMParser, as well as > > org.apache.xerces.xni.XMLDTDHandler don't use > > org.xml.sax.ext.DeclHandler? The methods seem to have the same masks... > > Simply put, SAX doesn't

Re: Using DOMParser to produce a non-Xerces Document

2001-04-13 Thread Andy Clark
I figured that thread was deep enough... ;) Ari wrote: > Is there a reason both versions of DOMParser, as well as > org.apache.xerces.xni.XMLDTDHandler don't use > org.xml.sax.ext.DeclHandler? The methods seem to have the same masks... Simply put, SAX doesn't communicate enough information. Also,

Re: Using DOMParser to produce a non-Xerces Document

2001-04-12 Thread K. Ari Krupnikov
Andy Clark wrote: > > Xerces2 doesn't have a StringPool, so String objects are passed > to the native interfaces. Both Xerces 1.x and Xerces2 have > internal interfaces but at least we're trying to "standardize" > the interfaces in Xerces2 (this is what we call XNI). > > In both versions, you can

Re: Using DOMParser to produce a non-Xerces Document

2001-04-12 Thread Andy Clark
Xerces2 doesn't have a StringPool, so String objects are passed to the native interfaces. Both Xerces 1.x and Xerces2 have internal interfaces but at least we're trying to "standardize" the interfaces in Xerces2 (this is what we call XNI). In both versions, you can directly extend the DOMParser cl

Re: Using DOMParser to produce a non-Xerces Document

2001-04-11 Thread K. Ari Krupnikov
Andy Clark wrote: > > "K. Ari Krupnikov" wrote: > > 1) add a constructor that takes a DOMImplementation argument and > > overload init() and reset(). In this case, > > I like this solution. Either a constructor or having a > property for the DOMImplementation object works for me. > Perhaps the se

Re: Using DOMParser to produce a non-Xerces Document

2001-03-09 Thread Andy Clark
"K. Ari Krupnikov" wrote: > xerces_j_2 DOMParser extends AbstractDOMParser; MAIN, XMLParser. This was a mistake. Some experimental parser configuration work was added to the HEAD accidentally; it should have been added to the "xerces_j_2" branch. I think that Arnaud will be fixing this shortly. Ri

Re: Using DOMParser to produce a non-Xerces Document

2001-03-09 Thread K. Ari Krupnikov
Arnaud Le Hors wrote: > > "K. Ari Krupnikov" wrote: > > > > Ehh? I'm afraid I'm not on the cvs-commit list :=) > > > > Would it be reasonable to use the production (1.3) version, or has there > > been significant work done? > > You can check out code anonymously. See http://xml.apache.org/cvs.htm

Re: Using DOMParser to produce a non-Xerces Document

2001-03-09 Thread Arnaud Le Hors
"K. Ari Krupnikov" wrote: > > Ehh? I'm afraid I'm not on the cvs-commit list :=) > > Would it be reasonable to use the production (1.3) version, or has there > been significant work done? You can check out code anonymously. See http://xml.apache.org/cvs.html -- Arnaud Le Hors - IBM Cupertino,

Re: Using DOMParser to produce a non-Xerces Document

2001-03-09 Thread K. Ari Krupnikov
Arnaud Le Hors wrote: > > "K. Ari Krupnikov" wrote: > > > > A stupid question - which cvs tag should I patch against? > > Definitely not stupid! I'd say it's your choice at this point. Which > version of Xerces are you using? If it's Xerces1 just work off the > trunc. If it's Xerces2 it's on the

Re: Using DOMParser to produce a non-Xerces Document

2001-03-09 Thread Arnaud Le Hors
"K. Ari Krupnikov" wrote: > > A stupid question - which cvs tag should I patch against? Definitely not stupid! I'd say it's your choice at this point. Which version of Xerces are you using? If it's Xerces1 just work off the trunc. If it's Xerces2 it's on the branch Xerces_j_2. Hmm... As I say th

Re: Using DOMParser to produce a non-Xerces Document

2001-03-09 Thread K. Ari Krupnikov
Andy Clark wrote: > > "K. Ari Krupnikov" wrote: > > 1) add a constructor that takes a DOMImplementation argument and > > overload init() and reset(). In this case, > > I like this solution. Either a constructor or having a > property for the DOMImplementation object works for me. > Perhaps the se

Re: Using DOMParser to produce a non-Xerces Document

2001-03-07 Thread K. Ari Krupnikov
Andy Clark wrote: > > "K. Ari Krupnikov" wrote: > > 1) add a constructor that takes a DOMImplementation argument and > > overload init() and reset(). In this case, > > I like this solution. Either a constructor or having a > property for the DOMImplementation object works for me. > Perhaps the se

Re: Using DOMParser to produce a non-Xerces Document

2001-03-07 Thread Andy Clark
"K. Ari Krupnikov" wrote: > 1) add a constructor that takes a DOMImplementation argument and > overload init() and reset(). In this case, I like this solution. Either a constructor or having a property for the DOMImplementation object works for me. Perhaps the second is better because people creat

Re: Using DOMParser to produce a non-Xerces Document

2001-03-06 Thread K. Ari Krupnikov
Andy Clark wrote: > > "K. Ari Krupnikov" wrote: > > > Why is it not possible? Is this your own document impl or > > > something else? > > > > It's my (and a few other people's) own. > > http://sourceforge.net/projects/dbdom > > Okay, now I'm getting the picture... > > If you have any ideas as to

Re: Using DOMParser to produce a non-Xerces Document

2001-03-06 Thread Andy Clark
"K. Ari Krupnikov" wrote: > > Why is it not possible? Is this your own document impl or > > something else? > > It's my (and a few other people's) own. > http://sourceforge.net/projects/dbdom Okay, now I'm getting the picture... If you have any ideas as to how to make your scenario (and similar

Re: Using DOMParser to produce a non-Xerces Document

2001-03-06 Thread K. Ari Krupnikov
Andy Clark wrote: > > "K. Ari Krupnikov" wrote: > > > You don't need to subclass the parser itself; you only need to > > > set the appropriate property on the parser to set the new DOM > > > implementation by using the fully qualified class name. For > > > example: > > > [...] > > > > I'm afraid t

Re: Using DOMParser to produce a non-Xerces Document

2001-03-06 Thread Andy Clark
"K. Ari Krupnikov" wrote: > > You don't need to subclass the parser itself; you only need to > > set the appropriate property on the parser to set the new DOM > > implementation by using the fully qualified class name. For > > example: > > [...] > > I'm afraid that's not possible. My Document does

Re: Using DOMParser to produce a non-Xerces Document

2001-03-05 Thread K. Ari Krupnikov
Andy Clark wrote: > > "K. Ari Krupnikov" wrote: > > What is the recommended way to use Xerces parser to build a DOM tree in > > a different implementation? > > > > I subclassed org.apache.xerces.parsers.DOMParser such that > > DEFAULT_DOCUMENT_CLASS_NAME is set to my Document implementation, and >

Re: Using DOMParser to produce a non-Xerces Document

2001-03-05 Thread Andy Clark
"K. Ari Krupnikov" wrote: > What is the recommended way to use Xerces parser to build a DOM tree in > a different implementation? > > I subclassed org.apache.xerces.parsers.DOMParser such that > DEFAULT_DOCUMENT_CLASS_NAME is set to my Document implementation, and > fDocument is set to an empty Do

Using DOMParser to produce a non-Xerces Document

2001-03-02 Thread K. Ari Krupnikov
Hi, What is the recommended way to use Xerces parser to build a DOM tree in a different implementation? I subclassed org.apache.xerces.parsers.DOMParser such that DEFAULT_DOCUMENT_CLASS_NAME is set to my Document implementation, and fDocument is set to an empty Document from my implementation. [1