Sample XML Data File for XPath Context and Navigation

MSXML 5.0 SDK

Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - XPath Developer's Guide

Sample XML Data File for XPath Context and Navigation

Topics in this section use the following XML data file. To view this with an XSLT file other than weather.xsl, change the href attribute.

XML File (weather.xml)

<?xml version='1.0'?>
<?xml-stylesheet type="text/xsl" href="weather.xsl" ?>
<!-- Readings for 2000-11-01 -->
<weather>
    <today>
        <temperature scale="F">76</temperature>
        <humidity>67</humidity>
        <wind unit="mph">5</wind>
        <!-- No precipitation today -->
        <precip />
    </today>
    <forecast day="+1">
        <temperature scale="F">81</temperature>
        <humidity>30</humidity>
        <wind unit="mph">10</wind>
        <precip>Rain</precip>
    </forecast>
    <forecast day="+2">
        <temperature scale="F">72</temperature>
        <humidity>60</humidity>
        <wind unit="mph">2</wind>
        <precip>Fog</precip>
    </forecast>
</weather>