NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Not more bad XML (Score:1)
If you have to generate not-quite-XML or bad XML, then you have a bigger problem. I am no
Re:Not more bad XML (Score:2)
But there's plenty of bad XML out there already and there are programmers who have no choice but to implement it, particularly if it's a third party requirement. Usually this bad XML tends to cause plenty of problems. Why have even more problems by creating yet another hand-rolled module which may or may not do what you want? Programmers in this unfortunate situation should at least be able to get the job done and not waste time having to reimplement something.
The good thing about Data::XML::Variant [cpan.org] is that it can produce perfectly valid XML. Thus, if you are lucky enough to be able to migrate from malformed XML to good XML, you already have code in place which can do that. Yes, there are those who would argue that you should then switch to modules which validate the XML, but ignoring issues of cost and time constraints is a habit that many programmers tend to get into.
Reply to This
Parent