J
Josef Garvi
I'm trying to do some basic things with the new XPath class in JDK 1.5.
When evaluating the path "/", I thought I was going to get my document root
element (see http://www.w3schools.com/xpath/xpath_location.asp), but I get
the XML encoding header node instead:
"<?xml version="1.0" encoding="UTF-8"?>"
I'm just trying something simple like:
Node node =
(Node) xpath.evaluate("/", doc, XPathConstants.NODE);
Have I misunderstood the use of "/"?
--
Josef Garvi
"Reversing desertification through drought tolerant trees"
http://www.eden-foundation.org/
new income - better environment - more food - less poverty
When evaluating the path "/", I thought I was going to get my document root
element (see http://www.w3schools.com/xpath/xpath_location.asp), but I get
the XML encoding header node instead:
"<?xml version="1.0" encoding="UTF-8"?>"
I'm just trying something simple like:
Node node =
(Node) xpath.evaluate("/", doc, XPathConstants.NODE);
Have I misunderstood the use of "/"?
--
Josef Garvi
"Reversing desertification through drought tolerant trees"
http://www.eden-foundation.org/
new income - better environment - more food - less poverty