Reading XML from Java

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • moorcroft
    New Member
    • Mar 2008
    • 57

    Reading XML from Java

    Hi I have an XML SOAP response which starts with the following XML:

    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <soap:Body>
    <GetAppXmlResponse xmlns="http://***.***.gov.uk/***">
    <GetAppXmlResult>
    <Connector timestamp="9/26/2008 10:46:26 AM" xmlns="">
    <code>0</code>
    <message>Success</message>
    <getappxml>
    <![CDATA[<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
    <Proposal>
    <SchemaVersion>1.1</SchemaVersion>
    <ApplicationHeader>Sample Header</ApplicationHeader>
    
    //further nodes and elements
    
    </Proposal>
    ]]>
    </getappxml>
    </Connector>
    </GetAppXmlResult>
    </GetAppXmlResponse>
    </soap:Body>
    </soap:Envelope>
    Could somebody please explain to me how I access the Proposal node in java, so that I can create a new SOAP message out of it
  • Dököll
    Recognized Expert Top Contributor
    • Nov 2006
    • 2379

    #2
    Any errors with this one!

    Tell us what happens when you run this bit of code.

    In a bit!

    Comment

    • jkmyoung
      Recognized Expert Top Contributor
      • Mar 2006
      • 2057

      #3
      Which classes are you using on your webservice to receive the soap message?

      Comment

      Working...