These classes have get/set methods which just manage some anon hashes in my class's instance data. I also have two methods - getXML and parseXML, which output the entire tree and snarf in a new tree, respectively.
getXML essentially converts my perl-friendly hash representation of the XML tree into a Xerces DOM, then returns the text representation. parseXML does the opposite - snarfs into a DOM and moves it into a nice perl hash. I've never used a DTD, so I'm not sure how far my idea would get you on that front. But as far as a way for "methods and stuff to do the tag work for you", I think it works okay.
Out of interest, how can a DTD help me? What does it bring to the table?
--
Ash OS durbatulk, ash OS gimbatul,
Ash OS thrakatulk, agh burzum-ishi krimpatul!
Uzg-Microsoft-ishi amal fauthut burguuli.
In reply to Re: RFC : XML::Generator::FromDTD
by hagus
in thread RFC : XML::Generator::FromDTD
by boo_radley
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |