XML - Managing Data Exchange/XPath/Exercises

XPath Chapter => XPath

XPath Answers => Answers

Below are exercises you can do to hone in on your XPath skills. Use the tree.xml file and xsl-tree.xsl to do the following:

XPath Tree Example
Modify and copy the xsl-tree.xsl file and rename the copies, indicating the question number.


 * Print the name attribute of every bigBranch element with thickness set as ‘thick’.
 * Print the name of the parent of each bigBranch.
 * Print the color of all leaves with a color attribute.

XPath Chapter => XPath

XPath Answers => Answers