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
FileContents
slideSample01.xmlA basic file containing a few elements and attributes as well as comments.
slideSample02.xmlIncludes a processing instruction.
SlideSampleBad1.xmlA file that is not well formed.
slideSample03.xmlIncludes a simple entity reference (<).
slideSample04.xmlContains a CDATA section.
slideSample05.xmlReferences 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.xmlDefines two entities ...

Get The J2EE™ Tutorial Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.