AtomParser::map_xmlns

Advertisement

Summery Summery

Map XML namespace to string.

Syntax Syntax

AtomParser::map_xmlns( indexish $p, array $n )

Parameters Parameters

$p

(Required) XML Namespace element index

$n

(Required) Two-element array pair. [ 0 => {namespace}, 1 => {url} ]

Return Return

(string) 'xmlns="{url}"' or 'xmlns:{namespace}="{url}"'

Source Source

File: wp-includes/atomlib.php

	public static function map_xmlns($p, $n) {
		$xd = "xmlns";
		if( 0 < strlen($n[0]) ) {
			$xd .= ":{$n[0]}";
		}
		return "{$xd}=\"{$n[1]}\"";
	}

Advertisement

Advertisement

Leave a Reply