Description :
This module contains generic XML testing tools. Functions include:
is_xml(GOT, EXPECTED [, TESTNAME ])
This function compares GOT and EXPECTED, both of which are strings of XML. The comparison works semantically and will ignore differences in syntax that are meaningless in xml, such as different quote characters for attributes, order of attributes or empty tag styles. It returns true or false, depending upon test success.
isnt_xml(GOT, MUST_NOT_BE [, TESTNAME ])
This function is similiar to is_xml(), except that it will fail if GOT and MUST_NOT_BE are identical.
is_well_formed_xml(XML [, TESTNAME ])
This function determines whether or not a given XML string is parseable as XML.
is_good_xml(XML [, TESTNAME ])
This is an alias for is_well_formed_xml().
|