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 (<
). slideSample04.xml Contains aCDATA
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
andproducts
) and referencesslideshow1b.dtd
. slideSample07.xml References an external entity defined locally (copyright.xml
) and referencesslideshow1b.dtd
. slideSample08.xml Referencesxhtml.dtd
using a parameter entity inslideshow2.dtd
, producing a naming conflict becausetitle
is declared in both. slideSample09.xml Changes thetitle
element toslide-title
so that it can referencexhtml.dtd
using a parameter entity inslideshow3.dtd
without conflict.