On Mon, Mar 31, 2003 at 12:45:14PM +0100, Dominic Mitchell wrote:
I've just uploaded a new module to CPAN[1], Test::XML. It contains a couple of functions for examining XML output of functions in a slightly saner way than is().
http://search.cpan.org/author/SEMANTICO/Test-XML-0.03/
is_xml( '<foo />', '<foo></foo>' ); # PASS
I like this.
Thanks, but the applause should really go to Kip Hampton for XML::SemanticDiff, which is a really cool module.
OTOH, it brings a couple of problems, which should probably go in the docs for Test::XML. Mostly that whitespace is normalized before testing and element order in mixed content things isn't preserved.
-Dom