Defining Data in XML Form

The photograph widget required an XML document to provide all of the data required by the renderer class. The details widget also requires an XML document for the same reasons. The general structure of the documents is the same: a root element containing one child element for each value, where each value is the body content of the child element.

Figure 1. An XML Document Describing a Person
<details>
  <name>James Smith</name>
  <reference>24684</reference>
  <address>1074, Park Terrace, Fairfield,
  Midway, Utah, 12345</address>
  <gender>Male</gender>
  <dob>9/26/1964</dob>
  <age>46</age>
  <phone>1 555 3477455</phone>
  <e-mail>james@ie.ibm.com</e-mail>
</details>

The XML above is formatted for clarity, the indentation or line breaks are not required.