home *** CD-ROM | disk | FTP | other *** search
/ Keystone Learning XML: Entities & Basic Scripting / Keystone Learning XML Entities and Basic Scripting.iso / Sample Files / chapter 2 / employees4.xml < prev    next >
Encoding:
Extensible Markup Language  |  1999-12-06  |  780 b   |  26 lines

  1. <?xml version="1.0"?>
  2. <employees>
  3.    <employee id="A1234">
  4.       <!-- Employee name is broken into first and last -->
  5.       <name>
  6.          <first>John</first>
  7.          <last>Doe</last>
  8.       </name>
  9.       <!--This is a comment within the <name> element-->
  10.       <position>Programmer</position>
  11.       <!-- Address is identified by street, city, state, zip -->
  12.       <address>
  13.          <!-- This is another comment -->
  14.          <street>123 Main Street</street>
  15.          <city>Anywhere</city>
  16.          <state>CA</state>
  17.          <zip>92000</zip>
  18.       </address>
  19.       <!-- Phone numbers can include main, home, fax, mobile -->
  20.       <phone>
  21.          <main>(714) 555-1000</main>
  22.          <fax>(714) 555-1001</fax>
  23.       </phone>
  24.    </employee>
  25. </employees>
  26.