Y
Yoav Shapira
Hi,
I have a well-formed XHTML document that, among other content, has the
following segment:
<img src="uniqueUrl1" />
<p>some text</p>
<p>some other text</p>
<p>some more text</p>
<img src="uniqueUrl2" />
Now, my question: given unique URLs 1 and 2, how do I select all the
content between the two img nodes?
I thought //img[@src="uniqueUrl1"] would work for the first image and
//img[@src="uniqueUrl2"] for the second image node, but they don't seen
to, and anyways they don't give me the content between. I know of the
following axis, but not sure how to use it if it's applicable here at
all.
Any help would be appreciated -- thank you!
Yoav Shapira
I have a well-formed XHTML document that, among other content, has the
following segment:
<img src="uniqueUrl1" />
<p>some text</p>
<p>some other text</p>
<p>some more text</p>
<img src="uniqueUrl2" />
Now, my question: given unique URLs 1 and 2, how do I select all the
content between the two img nodes?
I thought //img[@src="uniqueUrl1"] would work for the first image and
//img[@src="uniqueUrl2"] for the second image node, but they don't seen
to, and anyways they don't give me the content between. I know of the
following axis, but not sure how to use it if it's applicable here at
all.
Any help would be appreciated -- thank you!
Yoav Shapira