Sample XML File for DOM Context

MSXML 5.0 SDK

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

Sample XML File for DOM Context

This file is part of the Invoice sample.

XML File (invoice.xml)

<?xml version="1.0" encoding="windows-1252"?>
<?xml-stylesheet type="text/xsl" href="invoice.xsl"?>
<invoices xmlns:dt="urn:schemas-microsoft-com:datatypes">
  <customers>
    <customer id="2513">Joe</customer>
    <customer id="4871">Bob</customer>
    <customer id="7806">Jane</customer>
    <customer id="1579">Bruce</customer>
    <customer id="2533">John</customer>
    <customer id="1445">Bill</customer>
  </customers>
  <invoice id="5034">
    <customer ref="2513"/>
    <items>
      <item>
        <product-number>50014371</product-number>
        <description>Windbreaker (teal)</description>
        <qty dt:dt="number">1</qty>
        <price dt:dt="number">18.00</price>
      </item>
    </items>
  </invoice>
  <invoice id="5035">
    <customer ref="4871"/>
    <items>
      <item>
        <product-number>61570910</product-number>
        <description>Arctic Parka</description>
        <qty dt:dt="number">1</qty>
        <price dt:dt="number">160.00</price>
      </item>
      <item>
        <product-number>ISBN:1-57231-686-1</product-number>
        <description>Signal Flare 6-pack</description>
        <qty dt:dt="number">3</qty>
        <price dt:dt="number">48.50</price>
      </item>
      <item>
        <product-number>68710047</product-number>
        <description>Woolen Mittens</description>
        <qty dt:dt="number">1</qty>
        <price dt:dt="number">14.50</price>
      </item>
    </items>
  </invoice>
  <invoice id="5036">
    <customer ref="7806"/>
    <items>
      <item>
        <product-number>56812007</product-number>
        <description>Tropical Shade Hat</description>
        <qty dt:dt="number">1</qty>
        <price dt:dt="number">29.90</price>
      </item>
      <item>
        <product-number>74500231</product-number>
        <description>Bug Repellant</description>
        <qty dt:dt="number">3</qty>
        <price dt:dt="number">4.95</price>
      </item>
    </items>
  </invoice>
  <invoice id="5037">
    <customer ref="1579"/>
    <items>
      <item>
        <product-number>65040097</product-number>
        <description>Arctic Parka</description>
        <qty dt:dt="number">2</qty>
        <price dt:dt="number">160.00</price>
      </item>
      <item>
        <product-number>2310078</product-number>
        <description>Tundra Jacket</description>
        <qty dt:dt="number">1</qty>
        <price dt:dt="number">105.50</price>
      </item>
    </items>
  </invoice>
  <invoice id="5038">
    <customer ref="2533"/>
    <items>
      <item>
        <product-number>54807910</product-number>
        <description>DVD Player</description>
        <qty dt:dt="number">1</qty>
        <price dt:dt="number">342</price>
      </item>
      <item>
        <product-number>77842448</product-number>
        <description>Oddesy Mousepad</description>
        <qty dt:dt="number">1</qty>
        <price dt:dt="number">15</price>
      </item>
    </items>
  </invoice>
  <invoice id="5039">
    <customer ref="1445"/>
    <items>
      <item>
        <product-number>65470025</product-number>
        <description>Adventure Rations (Tofu)</description>
        <qty dt:dt="number">20</qty>
        <price dt:dt="number">6.00</price>
      </item>
      <item>
        <product-number>65470025</product-number>
        <description>Adventure Rations (Chicken)</description>
        <qty dt:dt="number">20</qty>
        <price dt:dt="number">6.00</price>
      </item>
      <item>
        <product-number>24500358</product-number>
        <description>Adventure Rations (Beef)</description>
        <qty dt:dt="number">20</qty>
        <price dt:dt="number">6.00</price>
      </item>
    </items>
  </invoice>
</invoices>