The xml_parser_create() function creates an XML parser.
PHP xml_parser_create() Function has the following syntax.
xml_parser_create(encoding)
Parameter | Is Required | Description |
---|---|---|
encoding | Optional. | Output encoding. Default is UTF-8 |
Possible values:
This function returns a resource handle to be used by other XML functions on success, or FALSE on failure.
Create an XML parser
<?php
$xmlparser = xml_parser_create();
xml_parser_free($xmlparser);
?>