• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

using org.apache.xpath - urgent !

 
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic