This discussion is archived
1 Reply Latest reply: Nov 6, 2013 3:22 PM by TPD-Opitz-Consulting-com RSS

How to read xml

HarshaJ Newbie
Currently Being Moderated


I'm getting xml from   customFieldsFeed.getEnumerationValues()  it is comming from  a web services looks like this

 

<xml-fragment xmlns:b=""http://schemas.microsoft.com/2003/10/Serialization/Arrays""
xmlns:i=""http://www.w3.org/2001/XMLSchema-instance""
xmlns:a=""http://schemas.xxxxxxxx""
xmlns:u=""http://docs.oasis-open.org/wss/xxxxxxx-utility-1.0.xsd""
xmlns:s=""http://schemas.xmlsoap.org/soap/envelope/"">
  <b:anyType i:type=""a:Enumeration"">
    <a:EnumerationID>AAAAA</a:EnumerationID>
    <a:Name>A3 MFD</a:Name>
  </b:anyType>
  <b:anyType i:type=""a:Enumeration"">
    <a:EnumerationID>BBBBB</a:EnumerationID>
    <a:Name>A3 Printer</a:Name>
  </b:anyType>
  <b:anyType i:type=""a:Enumeration"">
    <a:EnumerationID>CCCCC</a:EnumerationID>
    <a:Name>A4 MFP</a:Name>
  </b:anyType>

</xml-fragment>"

 

 

I need to read EnumerationID ex if AAAAA need to retrive Name value " A3 MFD"

 

java 1.6

 

Thanks,

HJ

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points