How to parse this xml using XPath in java?

maxteam

New Member
\[code\]<?xml version="1.0" encoding="utf-8"?> <double xmlns="http://www.somewebsite.com/">2.0</double>\[/code\]I'm having a bit of trouble parsing this using XPath 1.0.this is what i do:\[code\]XPath xpath = XPath.newInstance("/double");Element returnElement = (Element) xpath.selectSingleNode(doc);\[/code\]the return element is null but it should be 2.0.NOTE: It should be using XPath 1.0
 
Back
Top