mirror of
https://github.com/Mercury-Language/mercury.git
synced 2026-04-20 20:03:44 +00:00
Estimated hours taken: 1 Add a sample directory in the XML parser directory extras/xml/README update the README file extras/xml/tryit.m modify the file to print out all output messages as well as any error messages extras/xml/samples a sample directory containing instructions on how to run the parser and some sample files extras/xml/samples/README README file extras/xml/samples/newsarticles.xml sample XML file for running the XML parser extras/xml/samples/newsarticles.dtd sample DTD file for running the XML parser extras/xml/samples/catalog a catalog file
12 lines
195 B
DTD
12 lines
195 B
DTD
<!-- News Articles DTD -->
|
|
|
|
<!ELEMENT NEWSARTICLES (ARTICLE+)>
|
|
|
|
<!ELEMENT ARTICLE (TITLE, BODY)>
|
|
<!ATTLIST ARTICLE DATE CDATA #REQUIRED>
|
|
|
|
<!ELEMENT TITLE (#PCDATA)>
|
|
|
|
<!ELEMENT BODY (#PCDATA)>
|
|
|