Ananth Ram wrote:I am newbie to XPath. I have the below file, to parse and retrieve the <jar> under <test> only and ignore <jar> under <subcomponent>. I am using XPath for the same.
In that case you might want to consider finding out the difference between the "/" and "//" operators in XPath.
When I retrieve, I am not getting the value. Please someone help me.
Could you provide a description of the problem? "Not getting the value" doesn't mean anything when the first line of your post says you are expecting more than one value. So, tell us what you see, what you expected to see, and what the difference is.