Link to home
Start Free TrialLog in
Avatar of Larry Brister
Larry BristerFlag for United States of America

asked on

What type of XML Node is this?

I am getting the xml below returned from an HttpWebRequest
I want to ALWAYS read the first node below the <Result..." line.

How can I do that in VB?
In otherwords my variable would be

myVar = "MonitorStartResponse"


User generated image
Avatar of kaufmed
kaufmed
Flag of United States of America image

Can you post the code you are attempting to use? I suspect you are probably having an issue with namespaces and prefixes.

You might also try using the FirstChild property against the XmlElement you have populated with the <Result> node.
Avatar of Larry Brister

ASKER

kaufmed
I'm strying to get the first "Child" after the <Resul..." middle section.

It could be the csta:MonitorStartResponse
It could be csta:EstablishedEvent
It could be anything
But it will always be the very first one.

Here's the actual XML.

<org.m5.api.v1.Response xmlns:m5="http://www.m5net.com/org/m5/data/v2/cti" xmlns:csta="http://www.ecma-international.org/standards/ecma-323/csta/ed5">
  <ErrorCount>0</ErrorCount>
  <Id>1</Id>
  <Result xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="org.m5.data.v2.cti.HostedConnectObject">
    csta:MonitorStartResponse>
      <csta:monitorCrossRefID>392</csta:monitorCrossRefID>
    </csta:MonitorStartResponse>
  </Result>
</org.m5.api.v1.Response>

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of kaufmed
kaufmed
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks