Download PDF Home History |  | API Search Feedback FAQ

> ## Summary

> Congratulations! You have now created a number of XML files that you can use for testing purposes. Table 2-5 describes the files you have constructed.

> Table 2-5 Listing of Sample XML Files
> File | Contents
> --- | ---
> slideSample01.xml | A basic file containing a few elements and attributes as well as comments.
> slideSample02.xml | Includes a processing instruction.
> SlideSampleBad1.xml | A file that is not well formed.
> slideSample03.xml | Includes a simple entity reference (`&lt;`).
> slideSample04.xml | Contains a `CDATA` section.
> slideSample05.xml | References either a simple external DTD for elements (`slideshow1a.dtd`) for use with a nonvalidating parser, or else a DTD that defines attributes (`slideshow1b.dtd`) for use with a validating parser.
> slideSample06.xml | Defines two entities locally (`product` and `products`) and references `slideshow1b.dtd`.
> slideSample07.xml | References an external entity defined locally (`copyright.xml`) and references `slideshow1b.dtd`.
> slideSample08.xml | References `xhtml.dtd` using a parameter entity in `slideshow2.dtd`, producing a naming conflict because `title` is declared in both.
> slideSample09.xml | Changes the `title` element to `slide-title` so that it can reference `xhtml.dtd` using a parameter entity in `slideshow3.dtd` without conflict.

Download PDF Home History |  | API Search Feedback FAQ

All of the material in The J2EE(TM) 1.4 Tutorial is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.