You have to do it for yourself. I believe SAX2 do not store any information regarding elements already handled......You would like to use a stack or another application�s owned data structure to account that info.
regards alfredo -----Original Message----- From: Bagepalli, Kiran [mailto:[EMAIL PROTECTED]] Sent: Martes, 17 de Septiembre de 2002 08:08 p.m. To: '[EMAIL PROTECTED]' 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]
