ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> xml-dev
xml-dev
[xml-dev] Simple xpath software request
by Kris Thompson other posts by this author
Feb 28 2002 7:58PM messages near this date
RE: [xml-dev] REST as RPC done right | Re: [xml-dev] Simple xpath software request
I must have missed it but I feel like my searching has been complete.  I 
am looking for a way, using one of the more popular parsers idealy 
Xerces, to if given a node in a document return the XPath string 
representation of that node.  Something like the following would be nice

public static String getXPath(Document doc, Node node)
   
    where node is the node that I want the XPath expression on and doc 
is the document for which this node exist.  

If this does not exist in any popular parsers than has anyone created 
this piece of code for which I could have?

Thanks

Kris Thompson


-----------------------------------------------------------------
The xml-dev list is sponsored by XML.org <http://www.xml.org> , an
initiative of OASIS <http://www.oasis-open.org> 

The list archives are at http://lists.xml.org/archives/xml-dev/

To subscribe or unsubscribe from this list use the subscription
manager: <http://lists.xml.org/ob/adm.pl> 
Thread:
Kris Thompson
Christian Nentwich
Daniel Veillard
Mike Thanos
Michael Kay
Elliotte Rusty Harold
Michael Kay

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved