AtomParser::map_xmlns()
Map XML namespace to string.
Method of the class: AtomParser{}
No Hooks.
Return
String
. 'xmlns="{url}"' or 'xmlns:{namespace}="{url}"'
Usage
$result = AtomParser::map_xmlns( $p, $n );
- $p(indexish) (required)
- XML Namespace element index
- $n(array) (required)
- Two-element array pair. [ 0 => {namespace}, 1 => {url} ]
AtomParser::map_xmlns() AtomParser::map xmlns code WP 6.5.2
public static function map_xmlns($p, $n) { $xd = "xmlns"; if( 0 < strlen($n[0]) ) { $xd .= ":{$n[0]}"; } return "{$xd}=\"{$n[1]}\""; }