Function CMS_simple_xml_reader->_fix_namespace
Definitions
sources/xml.php
- Element names and attributes have complete namespace URIs as a prefix for some reason, this fixes that.
- Visibility: protected
- Is abstract?: No
- Is static?: No
- Is final?: No
- Returns: string
Parameters
Name | Type | Passed by reference? | Variadic? | Default | Set | Range | Description |
---|---|---|---|---|---|---|---|
$node_name | string | No | No | required parameter | N/A | N/A | Node name |
$xml_namespaces | array | No | No | required parameter | N/A | N/A | XML namespaces [ 'ns-prefix:' => 'http://example.com/namespace-uri' ] |
Returns
- Type: string
- Set: N/A
- Range: N/A
Preview
Code (PHP)
/**
* Element names and attributes have complete namespace URIs as a prefix for some reason, this fixes that.
*
* @param string $node_name Node name
* @param array $xml_namespaces XML namespaces [ 'ns-prefix:' => 'http://example.com/namespace-uri' ]
* @return string
*/
protected function _fix_namespace(string $node_name, array $xml_namespaces) : string
* Element names and attributes have complete namespace URIs as a prefix for some reason, this fixes that.
*
* @param string $node_name Node name
* @param array $xml_namespaces XML namespaces [ 'ns-prefix:' => 'http://example.com/namespace-uri' ]
* @return string
*/
protected function _fix_namespace(string $node_name, array $xml_namespaces) : string