DOM 006 exception is thrown only when there is a problem with hierarchy.
The occurs generally when u r trying to insert an element , which is going 
to deviate the well formdness of the XML document, like adding
element which may cause the document having more than one root element
etc... so u check where are you are trying to insert the node.

Mohan

>From: "kkumari" <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: <[EMAIL PROTECTED]>
>Subject: DOM Exception
>Date: Tue, 12 Jun 2001 20:12:59 +0530
>
>Hi,
>      I have a problem while appending nodes to the existing Dom Structure.
>I have an XML string which i get from an XML Database. Now i convert that
>into a Document node using DomParser. I have one Element called links in 
>the
>Domtree. Now if i try to create a new Element called links and try to 
>append
>it to the existing DomStructue i get DOM008 Exception. Then i tried using
>insertBefore() at the location where this node is supposed to go. This time
>i get Dom006 Exception. I tried replaceChild() also. Nothing worked.I don't
>undersatnt why i get DOMExceptions when i am trying to do valid operations.
>  Can anyone help me out?
>Thanks,
>kusuma
>

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.

Reply via email to