The same method allows you to retrieve all elements in the document using
'*':
http://www.w3.org/TR/2004/PR-DOM-Level-3-Core-20040205/core.html#ID-A6C90942
Thank you,
--
Elena Litani/ IBM Toronto
Monday, February 23, 2004 1:11 AM
To: "Xerces Mailing List \(E-mail\)" <[EMAIL PROTECTED]>
cc:
From: "CHAUDHURI, Neil" <[EMAIL PROTECTED]>
Subject: Retrieving All Elements in an XML Document
I have a question regarding what I hope will be a fairly trivial task. I
would simply like to retrieve all elements in an XML document. I am
familiar with the getElementsByTagName() method at the Document level, but
I would prefer a collection of all elements in the Document regardless of
tag name. I could certainly write a recursive function to retrieve all the
elements, but I was wondering if there was any existing functionality in
Xerces to save me the trouble.
Thanks very much.
Neil
____________________________
Neil Chaudhuri
Research Fellow
Systems Development & Technology Support
Logistics Management Institute
(571) 633-7786
[EMAIL PROTECTED]
www.lmi.org
---------------------------------------------------------------------
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]