xml_parser_create_ns()

It create an XML parser with namespace support

Example

<?php
$xmlparser = xml_parser_create_ns();
$fp = fopen(‘test.xml’, ‘r’);
while ($xmldata = fread($fp, 4096)){
if (!xml_parse($xmlparser,$xmldata,feof($fp)))
echo xml_error_string(xml_get_error_code($xmlparser));
}
xml_parser_free($xmlparser);
?>

Share