Skip to Main Content

How to read xml

CHJOct 24 2013 — edited Nov 6 2013


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

Comments
Post Details
Added on Oct 24 2013
1 comment
1,115 views