eWebProgrammer
Distributednetworks GofPatterns
prev prev
Course navigation
Creating a well-formed XML document
  1. Type the xml declaration line <?xml version="1.0" ?> and press Return. Note that there is no white space between the < and ? in the start element.
    One and only one root element
  2. Every XML document must have one and only one root element. The root element contains all other elements. Type the root element name of this XML document <inventory-items> and press Return.
    Inventory Items
  3. This XML document describes inventory items. To begin the description of one such item, type <item> and press Return .
    Item Name and Serial Number
  4. We will use <item-name>, <item-serial-number>, and <units-on-hand> elements to describe one inventory item. Type <item-name>Computer Monitor</item-name> and press Return.
    Computer Number
  5. Type <item-serial-number>9812097</item-serial-number> and press Return.
    Computer Monitor Serial Number
  6. Type <units-on-hand>50</units-on-hand> and press Return.
    Units on Hand
  7. We are now done with the description of this inventory item. Type </item> and press Return.
    End element for document root element
  8. Type the end element for the document root element </inventory-items> and press Return.
    Well Formed XML Document
  9. You now have a well-formed XML document. Click Next to see what the document looks like when rendered in IE Explorer 5.0.
    Complete XML Document
  10. This is what the XML document looks like when rendered in IE Explorer 5.0. This completes the Simulation. Click the Exit button. alt="prev" border="0">
    wfs
Course navigation