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

A Sample XML Document

Listing 12.1 shows the XML code for a simple home page. This is a simple example, but it does contain all the important parts that you will find in nearly all XML documents.

Code Listing 12.1. Home.xml—A Simple XML Home Page

<?xml version="1.0"?>
<home.page>
   <head>
      <title>
         My Home Page
      </title>
      <banner source="topbanner.jpg"/>
   </head>
   <body>
      <main.title>
         Welcome to My Home Page
      </main.title>
      <rule/>
      <text>
         <para>
            Sorry, this home page is still under construction.
            Please come back soon!
         </para>
      </text>
   </body>
   <footer source="foot.jpg"/>
</home.page>


					  


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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