xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Hodges <harmo...@swbell.net>
Subject Re: How to deal with differences in DOM implementations?
Date Fri, 03 Mar 2000 19:56:19 GMT

----- Original Message -----
From: Arnaud Le Hors <lehors@us.ibm.com>
To: <general@xml.apache.org>
Sent: Friday, March 03, 2000 1:38 PM
Subject: Re: How to deal with differences in DOM implementations?


> The problem comes from the way you create a Document. This:
>
> > Document doc = db.newDocument ();
>
> isn't part of the DOM.
>
> DOM Level 1 didn't define any way of creating a document. So every DOM
> Level 1 implementation had to provide its own way of doing this.
> However, DOM Level 2 defines one way to do so, and this is what Xerces
> now supports. Hopefully, as people move their implementation to DOM
> Level 2, you'll have less trouble in this area.

That's not the problem.  I know DOM 1 doesn't specify how to create a
document.  The problem is with the
doc.getDocumentElement().appendChild(node) vs doc.appendChild(node).  Apache
wants me to do the first, Sun wants me to the second.



Mime
View raw message