Also I was looking at ElemStack. Is this stack maintained even for XML with
no associated DTD/schema (non-validating)?
Thanks
Kiran

-----Original Message-----
From: Bagepalli, Kiran [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, September 17, 2002 5:08 PM
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]

Reply via email to