The DOMXML library of functions is a comprehensive suite used to parse and operate with XML files.
This test uses a simple script which tests the domxml_open_file
function, 'domxml_open_file()', and the dump_mem function, 'dump_mem()'. The script parses the XML document 'validate.xml' and then prints the contents.
The test is
successful if 'Hello, World!' is displayed, followed by 'Hello world with my attribute' on the next line, and 'My Tag' on the last line.