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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 22 June 2012 06:13:47 GMT