Save as a file e.g. DTDSlide.dtd

<?xml version='1.0' encoding='us-ascii'?>

<!-- DTD for a simple "slide show". --> <!ELEMENT slideshow (slide+)> <!ELEMENT slide (title, item*)>

<!ELEMENT title (#PCDATA)>

<!ELEMENT item (#PCDATA | item)* >

 


Reference as described before in your XML file that uses this DTD.

Files:

DTD file(DTDSlide.dtd)

XML file (DTDSlideExample.xml)

view xml file


© Lynne Grewe