• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

using org.apache.xpath - urgent !  RSS feed

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ???
 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!