W3C home > Mailing lists > Public > www-dom@w3.org > October to December 2000

Re: Create a Document from scratch

From: Joseph Kesselman/Watson/IBM <keshlam@us.ibm.com>
Date: Tue, 7 Nov 2000 10:23:11 -0500
To: armelle clech <aclech@yahoo.fr>
Cc: www-dom@w3c.org
Message-ID: <OF8328F15F.865DD826-ON85256990.0053E53E@pok.ibm.com>

>Thanks for your answer.
>But where can I find DOM_DOMImplementation

Unfortunately, obtaining the DOMImplemetation object is a "bootstrapping
problem"; this is the point at which your code needs to be aware of exactly
whose DOM code it's actually going to use, and the details will vary from
one code base and language to another.

If you're calling it DOM_DOMImplementation, I suspect you're trying to use
the version of the DOM which is packaged with the Xerces-C parser. Xerces
can be downloaded from http://xml.apache.org

I'm not very familiar with the C++ version of  Xerces. But the sample
programs that come with it _should_ include an example of how to obtain the
DOM_DOMImplementation object.

We're investigating whether there's some way to avoid this implementation
sensitivity, or at least provide a default or system-level configuration
option. Unfortunately the best answers for doing so rely on dynamic code
loading, which is only available in some languages and platforms. We have
an approach that looks pretty good for Java, but it wouldn't work for many
other languages. We're still deciding what to do about that; watch for news
as the DOM continues to evolve.

Joe Kesselman  / IBM Research
Received on Tuesday, 7 November 2000 10:24:17 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 20 October 2015 10:46:07 UTC