I need to parse a fairly large XML response file and would like some suggestions on which XML module would work the best. We've been using the XML::Simple module, but I don't think that's the right one for the job. Below is the XML file we need to parse. In particular getting the data from the elements within the <message></message> Would the XML::Twig module work better for this ?? Any suggestion would be much appreciated.
===============================================================================
XML snip:
<messaging>
      <raiserisklevel>
<message>Records exist which match your SSN and Last Name, but with a different first name</message>
      </raiserisklevel>
       <lowerrisklevel></lowerrisklevel>
        <informational>
<message>There has been a recent increase in records that match the consumer"s SSN but where the name bears little or no resumblance to consumers</message> <message>There has been a recent increase in records which match your SSN and Last Name, but with a different first name</message>
        </informational>
     </messaging>

================================================================================
Entire XML file:
<?xml version="1.0" encoding="utf-8"?>
<EdentifyResponse>
<responsetype>Success</responsetype>
<code>0</code>
<message>Service Request Processed.</message>
<transactionid>f15fa75b-1982-4bb3-b9a0-891257c5aa4f</transactionid>
<response>
 <idalertresponse>
  <candidateinformation>
   <firstname>Jerry</firstname>
   <middle />
   <lastname>Jone</lastname>
   <suffix /><ssn>***-**-4512</ssn>
   <DOB>1/1/0001</DOB>
   <address1 />
   <address2 />
   <city />
   <state />
   <zip />
   <recordlocator>DD-1000000510</recordlocator>
   <scandate>6/24/2007</scandate>
   <scanid>81273</scanid>
   <processedby>TotalPayroll</processedby>
   <nametype>u</nametype>
  </candidateinformation>
   <candidateresults>
    <candidateactivity>
     <messaging>
      <raiserisklevel>
<message>Records exist which match your SSN and Last Name, but with a different first name</message>
      </raiserisklevel>
       <lowerrisklevel></lowerrisklevel>
        <informational>
<message>There has been a recent increase in records that match the consumer"s SSN but where the name bears little or no resumblance to consumers</message> <message>There has been a recent increase in records which match your SSN and Last Name, but with a different first name</message>
        </informational>
     </messaging>
   </candidateactivity>
  </candidateresults>
 <resultssummary>
  <Other>
<scandetail code = "SMO" count = "2" active = "12 yrs 10 mos " lastactive = "1 yrs 3 mos " rundate = "200706" />
  </Other>
  <Suspects>
<scandetail code = "SU" count = "24" active = "24 yrs 8 mos " lastactive = "11 mos " rundate = "200706" />
  </Suspects>
 </resultssummary>
 <ScanDetails permissableuse="false">
   <scandetail>
    <riskgroup />
    <name />
    <ssn />
    <ssnvalid />
    <dob />
    <address />
    <sources>
    <source vendor="" type="" /></sources>
  </scandetail>
 </ScanDetails>
</idalertresponse>
</response>
</EdentifyResponse>
---------------------------------------------------------------

Mike(mickalo)Blezien
===============================
Thunder Rain Internet Publishing
===============================
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to