Processing XML with PHP - Create the Parser Object
(Page 2 of 6 )
An XML parser object is created to process the XML document with the function xml_parser_create. This object will be destroyed automatically when PHP has completed processing the script, but it still may be a good idea to destroy the object and free up resources by using the xml_parser_free function, especially if there still more script processing after the last use of the parser.
<?php $parser = xml_parser_create(); /* xml processing code here */ xml_parser_free($parser); ?>