RE: [xml] XPath / LibXML question
- From: "Buchcik, Kasimier" <k buchcik 4commerce de>
- To: "Buchcik, Kasimier" <k buchcik 4commerce de>
- Cc: xml gnome org
- Subject: RE: [xml] XPath / LibXML question
- Date: Thu, 1 Jun 2006 16:45:36 +0200
Hi,
-----Original Message-----
From: xml-bounces gnome org [mailto:xml-bounces gnome org] On
Behalf Of Buchcik, Kasimier
Hi,
As Aron already pointed out, the position() should be of
help. You need to select the descendant-or-self or descendant
axis.
Your expression could look like this:
"//instance[ att2='2' and
parent::instances/parent::item[ att1='1']][1]"
Whoops, sorry this should read:
"/descendant::instance[ att2='2' and
parent::instances/parent::item[ att1='1']][1]"
Regards,
Kasimier
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]