- 57 -
112, Main Street
Mudy Waters
FL
55544
As you can see, some elements (ADDRESS_BOOK, CONTACT, PHONE, ADDRESS)
are used only to provide structure while other elements (NAME, AREA_CODE,
PHONE_NUMBER, STREET_ADDRESS, CITY, STATE, ZIP) actually contain
information. Intuitively, you can see that because the data is so richly structured, given a
complete database of contacts, you could perform searches or sorting based on city
information, area code, or name. Intuitively, you can also see that because the NAME
element is not broken up into a FIRST_NAME and LAST_NAME, simple sorting involving
the content of the NAME element would be done on the basis of the contact’s first name.
Figure 3.4 shows how Internet Explorer displays the above raw XML file. Internet
Explorer 5.0 has a built-in MIME Type viewer that allows you to dynamically view the
contents and structure of raw XML files.