Parse XMLfile as String using SAX parser
I am trying to use SAX parser.
Here is the requirement
I will get the XML file as string from a third party application. Now I need to get the java objects out of this String by using SAX parser.
Sample XML string as below.
I need parse this using SAX and get the values out of it.
String xmlString="<?xml version="1.0" encoding="UTF-8"?><response><record><Id>04334</Id>
<Type>A</Type><effectiveDate /><lastModifiedDate>2006-04-03 00:00:00</lastModifiedDate>
<associatedSisId /><risk><namedInsured> <firstName>Barney</firstName><lastName>Rubble
</namedInsured><address><street1>123 Easy Street</street1>
<street2>Apartment 5</street2><city>Madras</city> <state>TN</state><zip5>55345340</zip5>