I took a look at doing precisely this a few months ago, but determined that I didn't have the time and expertise for it (I got XML::ValidWriter to install, but nothing much more). All I can say is, please, write it! It's too late for the job I needed it for, but future generations will still thank you profusely (assuming, of course, that future generations are allowed to see it--obviously not a given).

In my investigations (such as they were) I also came to the conclusion that SGML::DTD was the way to go, though you seem in any case to have done a more thorough job of researching the topic than I did. I do have some reservations about code that raises four different warnings at compile time, but it is somewhat aged (last change was in 1997), so perhaps that's to be expected.

Good luck!



If God had meant us to fly, he would *never* have given us the railroads.
    --Michael Flanders


In reply to Re: RFC : XML::Generator::FromDTD by ChemBoy
in thread RFC : XML::Generator::FromDTD by boo_radley

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.