Hi, I am trying to find some sample code which uses the class 'org.apache.xpath' . (Xalan parser - JAXP 1.1) ... I need to use XPATH expressions in my Java application to access and manipluate various parts of an xml document, but can't seem to find any sample code to match the parsers I'm using. (I must use the jaxp1.1 parsers - xalan.jar, crimson.jar & jaxp.jar) Any ideas ???
Catriona, You could use the Xalan-j_2_1_0 jar file to serve your purpose. If you download the 2.1.0 version, there are samples included in a directory - you will want to look at the ApplyXPath.java example which shows you how to use the org.apache.xpath.XPathAPI to select nodes and consequently could be modified and manipulated. A brief description of the samples provided with the package could be found at: http://heechee.osc.edu:7180/xalan-docs/samples.html Hope this helps! Cheers! Johannes