[XML-DEV Mailing List Archive Home]
[Reply To This Message]
parsing an XML document with comments
- From: "Abhishek Srivastava" <abisheks@i...>
- To: "xml dev mailing list" <xml-dev@i...>
- Date: Fri, 19 Nov 1999 14:56:01 +0530
I have written a program that searches an xml
document for a particular element.
The problem is that it uses DOM. DOM will convert
all the comments, white spaces etc. etc.
into Nodes thus slowing down my recursive search
thru the tree.
Is there a way I can "switch off" the creation
of these unwanted nodes. I agree that
are needed when u want to recreate a document from
a dom tree, but that's not what i need !
I only want to "quickly" search an XML document for
a particular tag.
Another Question : Does SAX also throw an event
when it comes across a comment in the doc being parsed ?
Hewlett Packard ISO
_/_/_/ _/_/_/ -------------------
_/ / _/
_/ (Work) +91-80-2251554 x1190
_/ _/_/_/ (Ip)
Work like you don't need the
Dance like no one is
And love like you've never been
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
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