OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Root Document Node

[ Lists Home | Date Index | Thread Index ]

Hello,
I'm interested in finding the root document node without knowing the name of that node.  However, not sure how to iterate throught the XML doc to determine when I've actually found this root element.  I tried setting root (a declared element) to childnodes(0), but that returned the xml processing intstruction.  Setting root to childnodes(1) worked (but tested on a very simple xml document), but what if there are more processing intrustions, or a DTD contained within this XML document.
 
Thanks for the help!
 
PS - the end result is this:  within this root element the user will be required to supply a UID and PWD, but the XML document might originate from many different sources, however I will always be able to count on the UID and PWD nodes within the root document.
 
Karl




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS