November 2002
Intermediate to advanced
1120 pages
21h 2m
English
XPath can be thought of as a query language like SQL. Rather than extracting information from a database, however, XPath extracts information from an XML document. An example should help make this more concrete. Consider the simple weather report document in Example 16.1.
<?xml version="1.0" encoding="ISO-8859-1"?> <weather time="2002-06-06T15:35:00-05:00"> <report latitude="41.2° N" longitude="71.6° W"> <locality>Block Island</locality> <temperature units="°C">16</temperature> <humidity>88%</humidity> <dewpoint units="°C">14</dewpoint> <wind> <direction>NE</direction> <speed units="km/h">16.1</speed> <gust units="km/h">31</gust> </wind> <pressure units="hPa">1014</pressure> <condition>overcast</condition> ... |
Read now
Unlock full access