Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] dom - how to get xpath of a node

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: Elliotte Rusty Harold <elharo AT ibiblio.org>
  • To: XOM API for Processing XML with Java <xom-interest AT lists.ibiblio.org>
  • Subject: Re: [XOM-interest] dom - how to get xpath of a node
  • Date: Sun, 19 Jul 2009 05:49:48 -0700

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




Archive powered by MHonArc 2.6.24.

Top of Page