<!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.2919.6307" 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>Can someone explain that why does SAX have
two call back functions one for Tag Name (startElement ) and one for the
tag Value ( Characters ) </FONT><FONT face=Arial size=2>Instead, why not
have one function that calls back the processing application with a name value
pair. ( for elements as well as attributes )</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>This makes it easier to process the data as u get
the name of the tag and it's value in one shot.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Currently , when my application encounters a
tagname it would be interested in, it sets a global Boolean flag to true so that
when the call back happens on the Characters function the value is stored in a
variable and not ignored.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>The parser could throw a name value pair for both
the elements as well as the attributes , since my application just needs the
data and it would not be concerned whether the name value pair is from an
element or an attribute.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>Can I modify the source code of any parser that
would give me name value pairs in one call back function rather than two ? How
complicated would that be ?</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>regards,</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>