NetBeansв„ў IDE Field Guide: Developing Desktop, Web, Enterprise, and Mobile Applications (2nd Edition)

Overview

This chapter presents our second case study. Whereas the XML in the previous example fell firmly into the category of narrative (or document-oriented ) XML, this chapter deals largely with data. However, as with many data-oriented XML applications, it is not rigid tabular data, rather it is data with a very flexible structure with many complex linkages and with many fields allowed to repeat an arbitrary number of times; the data can also include structured text (document-oriented XML) in some of its elements.

The chosen application is to display a family tree, and the sample data we will use represents a small selection of information about the family of John F. Kennedy, President of the United States.

Because genealogy is for most people a hobby rather than a business, you may feel this example is a little frivolous. I think it would be a mistake to dismiss it that way, for several reasons:

I could have used an example with invoices and requisitions and purchase orders. I believe that the techniques used in this worked example are equally applicable to many practical commercial problems, but that you will find a little excursion into the world of genealogy a pleasant relief from the day job.

Категории