in reply to Parsing an XML-like definition of an XML-like language to create a parser of the actual data in that language.

See section "2.8 Prolog and Document Type Declaration" in the "Extensible Markup Language (XML) 1.0 (Second Edition)" here.

You might also like to follow on with Create XML from Schema. The modules XML::LibXML and SGML::DTDParse may help too. Note that I've not used these modules, they just came up when I Super Searched "XML DTD" in SoPW.

Oh, and finding someone close by who knows XML will help.


DWIM is Perl's answer to Gödel
  • Comment on Re: Parsing an XML-like definition of an XML-like language to create a parser of the actual data in that language.

Replies are listed 'Best First'.
Re^2: Parsing an XML-like definition of an XML-like language to create a parser of the actual data in that language.
by Moron (Curate) on Nov 20, 2006 at 11:16 UTC
    Grandfather, Thanks, it did not occur to me that DTD was an official acronym and so this helps me also to search CPAN for further choices in trying to string together the two parsers.

    -M

    Free your mind

      Grandfather, Thanks, it did not occur to me that DTD was an official acronym and so this helps me also to search CPAN for further choices in trying to string together the two parsers.

      (As a side note and mostly just for fun) so you did never look at the source for a web page? For this particular one I find:

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <!-- Took this out for IE6ites "http://www.w3.org/TR/REC-html40/loose. +dtd" -->