Yesterday you learned what a stylesheet is and how to use it. You also learned about using templates and getting values from an Extensible Markup Language (XML) document. So far the expressions you’ve used to match templates and select data have been rudimentary. What you can do at this point therefore is limited.
Today’s lesson will focus on getting more control over the data you select. Today you will learn the following:
• How the XML document tree works
• What XPath is
• How you can select single elements
• How you can select multiple elements
• How you can select attributes
An XML document is a hierarchical structure of elements. Each element in an XML document can have zero ...