Skip to main content

XLink and data

Using XLink to simplify the representation of data

Return to article


Listing 6. XLinks with a URL-addressable database
<?xml version="1.0"?>
<order xmlns:xlink="http://www.w3.org/1999/xlink">
  <orderDate>7/23/2001</orderDate>
  <shipDate>7/26/2001</shipDate>
  <customer xlink:href="http://db.mycompany.com?getCustomer('18273')">18273</customer>
  <lineItem>
    <part xlink:href="http://db.mycompany.com?getPart('W-127')">W-127</part>
    <quantity>17</quantity>
    <unitPrice>0.20</unitPrice>
  </lineItem>  
  <lineItem>
    <part xlink:href="http://db.mycompany.com?getPart('S-387')">S-387</part>
    <quantity>31</quantity>
    <unitPrice>0.40</unitPrice>
  </lineItem>  
</order>

Return to article