English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The xml_parser_create_ns() function is used to create an XML parser with namespace support.
resource xml_parser_create_ns ([ string $encoding [, string $separator = ":" ]])
It is used to create an XML parser with namespace support
If successful, the function returns a resource handle that can be used by other XML functions. If failed, it returns FALSE.
Serial number | Parameters and descriptions |
---|---|
1 | encoding Optional. Specify the output encoding. In PHP 5.0.2 and above versions, the default is UTF-8.Possible values:
Note:In PHP 5 The input encoding is automatically detected. In PHP 4 and earlier versions, this parameter specifies the character encoding for input and output. In Note:In PHP 5.0.0 and 5.0.1 In, the default output character set is ISO-8859-1. |
2 | separator The output delimiter for the specified tag name and namespace. The default is " : ". |