Querying the CTAN Database – DTD
Most of the XML files are described by a DTD. This DTD is referenced in the files by URL. Under this URL the DTD can be downloaded:
The result is an XML file as in the following listing:
<?xml version="1.0" encoding="UTF-8"?> <!-- The basic design of the DTD for the TeX Catalogue … - --> <!ENTITY hellip "…"> <!ENTITY nbsp " "> <!ENTITY pound "£"> <!ENTITY % text "#PCDATA|xref|em|a|p|pre|tt|br"> <!ELEMENT fullcat (authors, catalogue)> <!-- author element …