
336 Chapter 8 • Securing XML
Both very simple and very complicated concepts can be expressed
through careful organization of elements in a concise, logical manner.
Attributes
As you organize data into elements, you may find the elements them-
selves require further description.This can be done through attributes, as
shown in the following example:
<Customer CustomerID="234563">
<FirstName>Fred</FirstName>
<LastName>Johnson</LastName>
<Email>fjohnson@hotmail.com</Email>
</Customer>
CustomerID is an attribute of Customer. This document can also be
expressed as follows:
<Customer>
<CustomerID>234563</CustomerID>
<FirstName>Fred</FirstName>
<LastName>Johnson</LastName> ...