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

Chapter 3. Getting Information Into and ... > Importing Information from an XML Fi...

Importing Information from an XML File

Extensible Markup Language (XML) files are often used for exchanging information between programs, both on and off the Web. XML files are similar to HTML files in two ways: both are plain text files that use tags to format their content, and both use start and end tags. However, HTML tags describe how elements should look, whereas XML tags specify the structure of the elements in a document. Also, as its name implies, the XML tag set is extensible—there are ways to add your own tags. Here is an example of a simple XML file:


<?xml version="1.0"?>
<ORDER>
             <CUSTOMER>Nancy Davolio</CUSTOMER>
             <PRODUCT>
               <ITEM>Sterilized Soil</ITEM>
               <PRICE>$8.65</PRICE>
               <QUANTITY>1 bag</QUANTITY>
             </PRODUCT>
</ORDER>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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