Well Gareth now you have to read your own code a bit. ;) The replaceChild method on document level works like a charm for replacing the document root element against another element node.
Best regards Erik Rydgren > -----Original Message----- > From: Gareth Reakes [mailto:[EMAIL PROTECTED] > Sent: den 24 november 2003 15:40 > To: [EMAIL PROTECTED] > Subject: Re: Document root node > > Hi, > you can not, it is considered part of the document. Xerces has a > function to allow creation of a Document without a root node, but even > this is not in the specs. > > Gareth > > > On Mon, 24 Nov 2003, Milan Tomic wrote: > > > > > How can I replace document root node with some other node? > > > > Thank you. > > > > -- > Gareth Reakes, Head of Product Development +44-1865-203192 > DecisionSoft Limited http://www.decisionsoft.com > XML Development and Services > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]