W3C home > Mailing lists > Public > www-dom@w3.org > July to September 2000

Re: Creation from scratch.

From: <keshlam@us.ibm.com>
Date: Wed, 12 Jul 2000 08:29:32 -0400
To: "www-dom@w3.org" <www-dom@w3.org>
Message-ID: <8525691A.00449B57.00@D51MTA03.pok.ibm.com>
> Can u create a DOM  tree from scratch without an XML file.?
>i.e. Just by having the document object, can u create all elements
>including the root element?

As of DOM Level 2, yes. However, the root element is created at the same
time as the Document it belongs to. See the
DOMImplementation.createDocument method, and the factory methods on the
Document interface.

Joe Kesselman  / IBM Research
Received on Wednesday, 12 July 2000 08:32:24 UTC

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