How to use SAXParser for parsing a XML in which major things are in attributes and xml in format of :
<code code="SPECIALNOTE"></code>
<text><![CDATA[<strong>** New York State approval pending. This test is not available for New York State patient testing **</br> ]]></text>
I need to access the hierarchy level till tag and then use the tag to get the value of it to show it to the screen.Java is the PL i am using and XML in which i want to use a SAXParser technique..i am a newbie, please help me out…
Thanks in advance,
El Nino
startElement()has a argument calledattributes. This will hold the attribute information for the element the parser has arrived at. You can then use that information how you need to continue farther with parsing.If you need a more general guide to how to write your handler, here is a tutorial.