[xml] Re: Relative paths and top-level xpath queries
- From: Greg Chapman <glc well com>
- To: xml gnome org
- Subject: [xml] Re: Relative paths and top-level xpath queries
- Date: Tue, 06 Apr 2004 09:24:34 -0700
On Tue, 6 Apr 2004 04:41:36 -0400, Daniel Veillard <veillard redhat com> wrote:
Seems to be a matter of initialization of the context node,
doc.xpathEval("doc")
[<xmlNode (doc) object at 0x8247664>]
context.setContextNode(doc)
context.xpathEval("doc")
[<xmlNode (doc) object at 0x8185b0c>]
OK, thanks. I'm not sure if you're saying that setContextNode should be called
automatically by xpathNewContext, but at any rate it's easy enough to make the
call myself (or to directly use xmlDoc.xpathEval).
---
Greg Chapman
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]