troubleshooting Question

Xpath

Avatar of sherbug1015
sherbug1015Flag for United States of America asked on
XMLC#Visual Basic.NET
2 Comments1 Solution314 ViewsLast Modified:
I have a web service that is returning this:

<?xml version="1.0" encoding="utf-16"?>
<GeocodeInfo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <Latitude xmlns="http://tempuri.org/">42.0903</Latitude>
  <Longitude xmlns="http://tempuri.org/">-71.423011</Longitude>
  <AddressID xmlns="http://tempuri.org/">27195</AddressID>
</GeocodeInfo>


I am trying to extract the latitude like this but I am not getting any value

sLatitude = xdoc.SelectNodes("/Latitude")

Can someone help me with this.

Thanks.
ASKER CERTIFIED SOLUTION
Gertone (Geert Bormans)
Information Architect
Join our community to see this answer!
Unlock 1 Answer and 2 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 2 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros