Paul Policarp wrote:Ok, but my XML looks like this:
<?xml version=1.0...>
<snapshot>
<node> value<node>
.
.
.
</snapshot>
I need everything BUT "<?xml version=1.0...>" as a DOM. Can I remove it with removeChild? Does it have a parent node?
No, that's a completely wrong understanding of DOM. Your DOM only contains the nodes of the document. It doesn't "contain" the prolog from the text version of the document; the prolog is produced when you serialize the DOM.
If you don't want your serialized document to contain a prolog, then do something differently in the serialization process to exclude the prolog.