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

Elements and Nodes

Elements and Nodes

The tags that make up XML have special names. They're called elements or nodes. The terms are more or less interchangeable (at least as far as we care about here). Let's use Example A-2 to take another look at the earlier example.

Example A-2. Another look

<?xml version="1.0" ?>
<customer_list>
    <customer number="050">
      <name>Cyndi Lauper</name>
      <customer_since year="1994" />
    </customer>
    <customer number="041">
      <name>Ozzy Osbourne</name>
      <customer_since year="2000" />
    </customer>
</customer_list>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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