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
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 UTC

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