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

Re: New spec. Questions

From: Frank Boumphrey <bckman@ix.netcom.com>
Date: Thu, 23 Jul 1998 17:34:24 -0400
To: "Don Park" <donpark@quake.net>, "Dom mailing list" <www-dom@w3.org>
Message-ID: <01bdb681$a9613b40$1eaddccf@bckman.ix.netcom.com>
>>appendChild takes a Node argument and not a string.  Could you try again

Sure. Basically what I am asking is  , once you've created an object how do
you insert it into the tree.

I start with:

<greeting>Hello XML</greeting>

I want to end up with

<greeting>Hello XML</greeting>
<greeting>Hello DOM</greeting>

I create an element greeting with


I create a text node with

        document.createTextNode("Hello DOM")

How do I insert them into my document tree? by append child? by

If I use append child, how do I reference them, because as you say they are
not inserted into the tree therefore cannot be referenced by a nodeList


-----Original Message-----
From: Don Park <donpark@quake.net>
To: Dom mailing list <www-dom@w3.org>
Date: Thursday, July 23, 1998 7:07 AM
Subject: Re: New spec. Questions

>Document.createXXX() methods do not insert the created objects into the
>I am afraid your second question looks to me like an aftermath of too many
>insertBefore and appendChild.  what are greeting[1] and text[1]?
>appendChild takes a Node argument and not a string.  Could you try again?
>Best wishes,
>Don Park
Received on Thursday, 23 July 1998 17:30:14 UTC

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