[xml] Xpath question
- From: "Yong Chen (yongche)" <chen cisco com>
- To: <xml gnome org>
- Subject: [xml] Xpath question
- Date: Mon, 2 Jun 2008 18:20:07 -0700
Hi,
Got a question regarding xpath usage in libxml2.
If I have a document doc, which contains some nodes, say n1, n2, n3.
Now I have an xpath as: "/bookstore/book[1]/title"
Do we have any api that can evaluate node "n1" and tell me that if we
were to apply this xpath string to the document, then n1 would be
selected (or not).
Basically I want to evaluate an xpath on node basis, not the full
document basis.
Thanks,
Yong Chen
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]