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

Elliotte Rusty Harold elharo at ibiblio.org
Sun Jul 19 08:49:48 EDT 2009


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


More information about the XOM-interest mailing list