You'd have to keep track of the structure within your code Kiran. Remember SAX is event driven so there is basically no history of past elements. You could probably build an internal DOM tree
----- Original Message ----- From: "Bagepalli, Kiran" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 17, 2002 7:08 PM Subject: SAX implementation > Is there any way in SAX2 to find the relative location of an element. > Basically whenever I am at > startElement(), I would like to know the hierarchy from the root to this > element. > > <A> > <B> > <C> > <D/> > </C> > </B> > </A> > > When I at C, I would like to know that A.B.C is my path. Is there any way to > obtain this from the SAXParser. > I would like to know what element need to be unwrapped to get to this > element. > > Kiran > > --------------------------------------------------------------------- > 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]
