[xml] Re: Relative paths and top-level xpath queries



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]