server-php-xml-class-xml-check-example.php / php
<?php include_once("class_xml_check.php"); <?xml version="1.0"?> <foo> <data id="1"> <name>pepe</name> <num>2</num> </data> <data> <name>foo</name> <num>5</num> </data> </foo>'; check = new XML_check(); //if( if(check->check_string(<br/>"); print("<pre>"); print("Elements : ".check->get_xml_elements()."<br/>"); print("Attributes : ".<br/>"); print("Size : ".check->get_xml_size()."<br/>"); print("Text sections : ".<br/>"); print("Text size : ".check->get_xml_text_size()."<br/>"); print("</pre>"); } else { print("XML is not well-formed<br/>"); print(
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.