Re: [xml] noob xpath question
- From: Stefan Jeglinski <jeglin 4pi com>
- To: xml gnome org
- Subject: Re: [xml] noob xpath question
- Date: Wed, 28 Feb 2007 13:42:54 -0500
I think what you want is this: /myroot/myelement[ type="a"]
Yes, this is a variant I tried. xpath1.c sample code returns "Result
(0 nodes):" where as /myroot/myelement returns (as I would expect):
Result (2 nodes):
= element node "myelement"
= element node "myelement"
I have been interpreting the 0-node result as my mistake in syntax,
but based on another off-list reply, and yours, I have at least on
several occasions used the correct syntax. I hesitate to blame the
sample code though, as I am pretty green at this so far.
here is a simple python program to play with:
Thanks I will try this.
Stefan Jeglinski
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]