• 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

xpath library

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am new to XPath. Can any one let me know from where I can download xpath library(free and meets w3c specification). I am using jdk 1.4.
Is there any such library form w3c. Please let me know.
It is very urgent.

Thanks in advance !!!
 
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First of all, Patience Is A Virtue.

As to your question, Apache Xerces is one such a library.
 
avaya sahu
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Ulf Dittmer:
First of all, Patience Is A Virtue.

As to your question, Apache Xerces is one such a library.



I have very specific requirement, so wnatted to know whether it can handle it or not.

I have an element node with me and user will give xpath relative to the element to retrive to node(s) pointed by the xpath.

It should support attribute and regular expression.
pls. let me know what API(class) should be used for this?
 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try org.apache.xpath.CachedXPathAPI
or
org.apache.xpath.XPathAPI.

Both will allow you to specify an XPath string and it will return what you have asked for. This may or may not be what you wanted.

XPath supports XPath strings, not Regular Expressions. There is a learning curve associated with XPath.

Dave Patterson
 
Ulf Dittmer
Rancher
Posts: 43016
76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

There is a learning curve associated with XPath.



@David: That is a great characterization; I shall have to remember it.
 
Men call me Jim. Women look past me to this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic