xml-xindice-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From avikchatter...@vsnl.net
Subject Finding a Parent Node after Xpath Search
Date Thu, 12 Jun 2003 08:33:13 GMT
Hi, 

How do I get the parent node, using XpathQueryService.

My Sample Xml is : 

<organization>
	<title>Biology</title>
	<item identifier="S0" identifierref="R1">
		<title>Bio1</title>		
	</item>
	<item identifier="S1" identifierref="R2">
		<title>Bio2</title>
		<item identifier="S2" identifierref="R3">
			<title>Bio3</title>			
		</item>
	</item>
</organization>

I want to search title node string "Bio1" by Xpath and after searching it I want the corresponding
"identifierref" of the parent node of title. 

How do I get it....

Avik Chatterjee

Mime
View raw message