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

Re: Creating XML::DOM Tags

From: Joseph Kesselman <keshlam@us.ibm.com>
Date: Mon, 20 Nov 2000 09:26:36 -0500
To: www-dom@w3.org
Message-ID: <OF19771DC5.AFFC6E45-ON8525699D.004E8BC3@pok.ibm.com>

If you want information about the DOM architecture, without referring to a
particular implementation or language, you can find it at
     http://www.w3.org/DOM/
Unfortunately, Perl is not one of the languages for which the DOM spec
provides a standardized binding. But the principles should be the same. For
questions about a specific implementation, your best bet is to contact that
implementation's authors.

To add contents to an  existing node, create  the additional nodes as
needed and use the appendChild() and/or insertBefore() operations to put
them in the desired places in the DOM tree.

To find the last instance of a nodename... The simplest approach is to use
getElementsByTagName and get the last element of the resulting NodeList.
But that will involve walking the entire document, so I would instead
recommend that you develop a more intelligent search scheme which takes
advantage of knowledge about the structure of your documents.

______________________________________
Joe Kesselman  / IBM Research
Received on Monday, 20 November 2000 09:26:44 GMT

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