ONJava.com -- The Independent Source for Enterprise Java
oreilly.comSafari Books Online.Conferences.

advertisement

AddThis Social Bookmark Button
Article:
  Parsing an XML Document with XPath
Subject:   Fixes for JDK1.5.0_04
Date:   2005-08-17 06:39:58
From:   jimclark1
Casting to NodeSet doesen't work when evaluating a "NODESET", not sure why. However, casting to directly to a NodeList works.



NodeList nodeList = (NodeList)xPath.evaluate expression,inputSource, XPathConstants.NODESET);



1 to 2 of 2
1 to 2 of 2