[XOM-interest] dom - how to get xpath of a node
Matt Mitchell
goodieboy at gmail.com
Sun Jul 19 10:08:42 EDT 2009
Thanks Elliotte. you're right, that should be pretty easy to do.
fyi - I'm working on some jruby helpers for XOM and NUX here:
http://github.com/mwmitchell/jrx
Also, I'm new to java and was wondering if you could tell me what the
most popular and active XML lib for java is? Is it XOM? I need xslt
2.0 and xpath essentially.
Thanks again!
Sent from my iPhone
On Jul 19, 2009, at 8:49 AM, Elliotte Rusty Harold
<elharo at ibiblio.org> wrote:
> On Sat, Jul 18, 2009 at 5:29 PM, Matt Mitchell<goodieboy at gmail.com>
> wrote:
>> Hi,
>>
>> I'm indexing some xml into a search engine and would like to store
>> the xpath
>> of the nodes i'm indexing. Is this currently possible with the dom
>> api? If
>> not, anyone want to give me a hint as to how I'd do this?
>>
>
> There's no specific feature to do that. Nor is there one XPath for a
> node. I suppose theoretically there are an infinite number of such
> paths. It shouldn't be too hard to find an XPath for a node.
>
> --
> Elliotte Rusty Harold
> elharo at ibiblio.org
> _______________________________________________
> XOM-interest mailing list
> XOM-interest at lists.ibiblio.org
> http://lists.ibiblio.org/mailman/listinfo/xom-interest
More information about the XOM-interest
mailing list