CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Feb 2011
    Posts
    1

    Smile how to get xml nodes fro soap+xml tags using java?

    i am getting soap+xml tags as input and i need only xml tags from that i want it to extracted how to do it please anyone help me.
    the Soap+Xml tags i am getting :
    <soap:Envelope xmlns:ihut="http://www.aaaa.com/GprsModem">
    <soap:Body>
    <aaautdata>
    <aaa:argxmldata>
    <aaadata xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" devsrlno="101" signalstrength="30" devicedatetime="01/24/2010 10:10:23 AM" gprsdatetime="01/24/2010 10:10:23 AM" debug="yes">
    <autoip>1034|Chromepet|Chennai|117.97.24.32</autoip>
    </aaadata>
    </aaa:argxmldata>
    </aaautdata>
    </soap:Body>
    </soap:Envelope>

    i want only node from <argxmldata><aadata devsrlno="101"...><autoip>1034|Chromepet|Chennai|117.97.24.32</autoip></aadata></argxmldata>

    please tell me how to do it in java.

  2. #2
    Join Date
    Feb 2008
    Posts
    966

    Re: how to get xml nodes fro soap+xml tags using java?

    Please do a little reading up on either SAX or DOM parsing in Java. There are a ton, and I mean a ton, of tutorials on how to parse XML data in Java.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured