"Christopher Ebert" <[EMAIL PROTECTED]> writes:

>       You have two elements at the root of the document, I
>       believe. Your fragment is really just the same thing as your
>       document in the case you gave, so appending 'element' to
>       'frag' puts 'element' at the root of the document. Also, it's
>       probably an error to append a document to itself as a child
>       (doc.appendChild(frag) should probably always fail, given that
>       frag is also 'doc' - not the same top level object, but the
>       same tree).

So perhaps I just using the wrong method for add the new node.  Maybe
get an 'element' nodelist, clone one of the nodelist, then append that?
>
>
>       Chris
>> |     frag.appendChild( element );  // add element to our fragment
>> |     doc.appendChild( frag );      // add the fragment to my existing


-- 
Thanks,
Jeff
,----
| Jeffery B. Rancier
| 
| Softechnics
| a METTLER TOLEDO company
`----


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to