Examples of XPATH patterns
Monday, March 29, 2010
2:19 PM
Examples: consider the document:
contents of [file]...
<?xml version="1.0"?> 
<candies>
    <candy><name>taffy</name><price>$5</price>
	<length>1 ft</length></candy>
    <candy><name>chocolate</name><price>$3</price>
	<weight>1 lb</weight></candy>
</candies> 
...end of [file]

What nodesets do the following match?
candies/candy/name
candies/candy/*
candy/*
candy/../*
Pasted from <[link]> 