[Project_owners] XPath

Adam Judson adamsplugins at gmail.com
Wed Feb 15 17:39:33 EST 2006

A small xpath question:

I have the results of a yahoo geocoding transaction:

<?xml version="1.0" encoding="UTF-8" ?>
- <ResultSet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns="urn:yahoo:maps" xsi:schemaLocation="urn:yahoo:maps
- <Result precision="city" warning="The street could not be found.
Here is the center of the city.">
  <Address />
  <Zip />

and I want to pull out Latitude

document.evaluate("//Latitude", root, null, XPathResult.STRING_TYPE,

doesn't work.

I suspect the namespace is causing my problems, but as I was unable to
solve it in 5 minutes, I decided to defer to others wisdom...

Any suggestions?


More information about the Project_owners mailing list