HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
PHP XML Parser Reference : Create an XML parser with namespace support
The xml_parser_create_ns() function creates an XML parser with namespace support.
Parameter | Description |
---|---|
encoding | Optional. Specifies the character encoding for input/output in PHP 4. From PHP 5 it specifies the character encoding only for output. In PHP 5.0.0 and 5.0.1, the default output charset is ISO-8859-1. From PHP 5.0.2, the default output charset is UTF-8. The possible values are ISO-8859-1, UTF-8 and US-ASCII |
separator | Optional. Specifies the output separator for tag name and namespace. Default is " : " |
Return Value: | A resource handle to be used by other XML functions on success. FALSE on failure |
---|---|
PHP Version: | 4.0.5+ |
❮ Complete PHP XML Reference