<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=iso-8859-1" http-equiv=Content-Type>
<META content="MSHTML 5.00.2314.1000" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>I have written a program that searches an xml
document for a particular element.</FONT></DIV>
<DIV><FONT face=Arial size=2>The problem is that it uses DOM. DOM will convert
all the comments, white spaces etc. etc.</FONT></DIV>
<DIV><FONT face=Arial size=2>into Nodes thus slowing down my recursive search
thru the tree.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Is there a way I can "switch off" the creation
of th</FONT><FONT face=Arial size=2>ese unwanted nodes. I agree that
these </FONT></DIV>
<DIV><FONT face=Arial size=2>are needed when u want to recreate a document from
a dom tree, but that's not what i need !</FONT></DIV>
<DIV><FONT face=Arial size=2>I only want to "quickly" search an XML document for
a particular tag.</FONT><FONT face=Arial size=2></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Another Question : Does SAX also throw an event
when it comes across a comment in the doc being parsed ?</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>regards,</FONT><FONT face=Arial size=2><FONT
face=Arial size=2> </FONT></FONT></DIV>
<DIV><FONT face=Arial size=2>Abhishek.</FONT></DIV>
<DIV><FONT face=Arial
size=2>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR>
_/
Abhishek Srivastava<BR>
_/
Hewlett Packard ISO <BR>
_/_/_/ _/_/_/ -------------------
<BR> _/ / _/
_/ (Work) +91-80-2251554 x1190<BR>_/
_/ _/_/_/ (Ip)
15.10.47.37
<BR>
_/
(Url) <A
href="http://sites.netscape.net/abhishes/index.html">http://sites.netscape.net/abhishes/index.html</A>
<BR>
_/
<BR>
Work like you don't need the
money.<BR>
Dance like no one is
watching.<BR>
And love like you've never been
hurt.<BR>
--Mark
Twain
<BR>
<BR>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~<BR></FONT></DIV></BODY></HTML>