• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 14. Working with XML > Creating XML Objects

Creating XML Objects

Listing 14.3 shows an XML document that represents three employees in a corporation.

Listing 14.3. SingleCompany.xml—A Basic XML Document

<company>
  <employee ssn="123-45-6789">
    <first>Ed</first>
    <last>Johnson</last>
    <department>Human Resources</department>
  </employee>
  <employee ssn="541-29-8376">
    <first>Maria</first>
    <last>Smith</last>
    <department>Accounting</department>
  </employee>
  <employee ssn="568-73-1924">
    <first>Eric</first>
    <last>Masters</last>
    <department>Accounting</department>
  </employee>
</company>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint