How do i use XPATH on SOAP string?

Posted on 2008-01-31
Medium Priority
Last Modified: 2013-11-18
hi experts,

i use a webservice that returns a soap string and i try to work with xml/xpath on that string (loaded into a xmldocument)

but every xpath expression i tried doesn't work...

can you help me?

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<GetChildrenResponse xmlns="http://machine/types">
	<Attribute Name="Moniker" Group="SYSTEM">1|2C3CEE92-1AE6-472C-ABE9-D0365F0F8FD8|*|5981|*</Attribute>
	<Attribute Name="Created By" Group="SYSTEM">Administrator</Attribute>
	<Attribute Name="Creation Date" Group="SYSTEM">2007-07-25T09:18:23.234+0100</Attribute>
	<Attribute Name="Display Name" Group="USER">2) AUTOPROMO</Attribute>
	<Attribute Name="Modified By" Group="SYSTEM">Administrator</Attribute>
	<Attribute Name="Modified Date" Group="SYSTEM">2007-07-25T09:18:23.234+0100</Attribute>
	<Attribute Name="Path" Group="SYSTEM">/PRODUCTION/2) AUTOPROMO/</Attribute>
	<Attribute Name="Type" Group="SYSTEM">folder</Attribute>
<InterplayURI>interplay://RTLWG/PRODUCTION/3) PLUG/</InterplayURI>
	<Attribute Name="Moniker" Group="SYSTEM">1|2C3CEE92-1AE6-472C-ABE9-D0365F0F8FD8|*|6298|*</Attribute>
	<Attribute Name="Created By" Group="SYSTEM">Administrator</Attribute>
	<Attribute Name="Creation Date" Group="SYSTEM">2007-07-25T09:19:16.578+0100</Attribute>
	<Attribute Name="Display Name" Group="USER">3) PLUG</Attribute>
	<Attribute Name="Modified By" Group="SYSTEM">Administrator</Attribute>
	<Attribute Name="Modified Date" Group="SYSTEM">2007-07-25T09:19:16.578+0100</Attribute>
	<Attribute Name="Path" Group="SYSTEM">/PRODUCTION/3) PLUG/</Attribute>
	<Attribute Name="Type" Group="SYSTEM">folder</Attribute>
<InterplayURI>interplay://RTLWG/PRODUCTION/1) HABILLAGES/</InterplayURI>
	<Attribute Name="Moniker" Group="SYSTEM">1|2C3CEE92-1AE6-472C-ABE9-D0365F0F8FD8|*|7885|*</Attribute>
	<Attribute Name="Created By" Group="SYSTEM">Administrator</Attribute>
	<Attribute Name="Creation Date" Group="SYSTEM">2007-07-25T14:21:32.093+0100</Attribute>
	<Attribute Name="Display Name" Group="USER">1) HABILLAGES</Attribute>
	<Attribute Name="File Size" Group="SYSTEM">0</Attribute>
	<Attribute Name="Modified By" Group="SYSTEM">Administrator</Attribute>
	<Attribute Name="Modified Date" Group="SYSTEM">2007-07-25T14:21:32.093+0100</Attribute>
	<Attribute Name="Path" Group="SYSTEM">/PRODUCTION/1) HABILLAGES/</Attribute>
	<Attribute Name="Type" Group="SYSTEM">folder</Attribute>
 Dim xmlDOc As New XmlDocument
        Dim nsmgr As New XmlNamespaceManager(xmlDOc.NameTable)
        nsmgr.AddNamespace("se", "http://schemas.xmlsoap.org/soap/envelope/")
        nsmgr.AddNamespace("gc", "http://machine/types")
        For Each n As XmlNode In xmlDOc.SelectSingleNode("soap:Envelope/soap:Body/GetChildrenResponse/Results")

Open in new window

Question by:Dnx_7
LVL 13

Accepted Solution

kaylanreilor earned 2000 total points
ID: 20785999
Did you already read something like this ?

What do you mean by "doesn't work" excatly ?

Expert Comment

ID: 21022564
Forced accept.

EE Admin

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In real business world data are crucial and sometimes data are shared among different information systems. Hence, an agreeable file transfer protocol need to be established.
Simulator games are perfect for generating sample realistic data streams, especially for learning data analysis. It is even useful for demoing offerings such as Azure stream analytics, PowerBI etc.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
HTML5 has deprecated a few of the older ways of showing media as well as offering up a new way to create games and animations. Audio, video, and canvas are just a few of the adjustments made between XHTML and HTML5. As we learned in our last micr…
Suggested Courses

601 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question