Create an XmlCursor from the XmlObject and walk the cursor up the
parent chain, stopping just before the document container.  Under
well-formed circumstances, the cursor will be at the document element.
 Note that non well-formed documents do not always have a document
element, and that your original XmlObject may correspond to the
document itself, which has no parent.

- Eric

On 10/12/05, argyn <[EMAIL PROTECTED]> wrote:
> suppose I have a reference to XmlObject. I want to find out what is the
> root element in the document, which contains this object. how can i do this?
>
> thanks
> argyn
>
>
> ---------------------------------------------------------------------
> 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]

Reply via email to