|
[XML-DEV Mailing List Archive Home]
[By Thread]
[By Date]
[Recent Entries]
[Reply To This Message]
RE: Root Document Node
- To: "Karl Stubsjoen" <karl@e...>,"Xml-Dev" <xml-dev@l...>
- Subject: RE: Root Document Node
- From: "Dare Obasanjo" <dareo@m...>
- Date: Tue, 13 Aug 2002 07:45:35 -0700
- Thread-index: AcJC1WF8UIyYNzuORBqsescA1gHdrwAAhwUw
- Thread-topic: Root Document Node
Title: Message
<pedantic>
The
root node is not the same as the document element. More info at http://www.w3.org/TR/xpath#root-node
</pedantic>
-- PITHY WORDS OF WISDOM The buddy system is essential to
your survival; it gives the enemy somebody else to shoot
at.
This posting is provided "AS IS" with no
warranties, and confers no rights.
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!
Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!
Download The World's Best XML IDE!
Accelerate XML development with our award-winning XML IDE - Download a free trial today!
Subscribe in XML format
| RSS 2.0 |
 |
| Atom 0.3 |
 |
| |
Stylus Studio has published XML-DEV in RSS and ATOM formats,
enabling users to easily subcribe to the list from their preferred news reader application.
|
Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website.
they were not included by the author in the initial post. To view the content without the Sponsor Links please
click here.
|
|