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

Hour 23. Using XML to Describe Data > A Sample XML Data File

A Sample XML Data File

As you move to the first example of an XML file in Listing 23.1, perhaps you should cover up the explanation as you look at the code. Make every effort to determine what the XML file is describing before you read the explanation.

Listing 23.1. A Sample XML File

<?xml version="1.0" ?>
<!-- This is our first sample of XML code. The filename is firstxml.xml. -->
<email>
<to>STUDENT</to>
<from>AUTHOR</from>
<date>November 4, 2000</date>
<subject>Introduction to XML</subject>
<body>Welcome to XML!</body>
</email>


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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