<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2448.0">
<TITLE>Expat - basic help</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Arial">I need a stack mechanism that keeps track of the current context.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">For example, in the following XML, I need to distinguish between the two different <Name> tags.</FONT>
<BR><FONT SIZE=2 FACE="Arial"><Transaction></FONT>
<BR> <FONT SIZE=2 FACE="Arial"><Header> </FONT>
<BR> <FONT SIZE=2 FACE="Arial"><Name>Some text...</Name></FONT>
<BR> <FONT SIZE=2 FACE="Arial"></Header></FONT>
<BR> <FONT SIZE=2 FACE="Arial"><Body></FONT>
<BR> <FONT SIZE=2 FACE="Arial"><Name>Some different text...</Name></FONT>
<BR> <FONT SIZE=2 FACE="Arial"></Body></FONT>
<BR><FONT SIZE=2 FACE="Arial"></Transaction></FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">I was thinking of putting in a stack mechanism via the "XML_SetElementHandler" function.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Does anyone have any example code I can have a look at ?</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">Many thanks,</FONT>
<BR><FONT SIZE=2 FACE="Arial">Nigel</FONT>
</P>
</BODY>
</HTML>