[xml] Re: Running XPath on an element



Cory Nelson wrote:

Hello, I've looked over the docs and have search the mailing list but havn't
found anything for this.

Is there a way to execute XPath on a single element instead of an entire
document?

You need to set the ->node pointer in the XPath context to that element, and do a relative xpath query.

Just did that excessively myself.

Enno.
--
Nothing great has ever been accomplished without passion.
      (Georg Wilhelm Friedrich Hegel, 1770-1831)




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]