(bug 24781) Define XML namespace for API output. Also created the referenced URL on the cluster.

This commit is contained in:
Roan Kattouw 2011-05-13 16:34:36 +00:00
parent e7c48351b1
commit abaa9ae3f3

View file

@ -36,6 +36,7 @@ if ( !defined( 'MEDIAWIKI' ) ) {
class ApiFormatXml extends ApiFormatBase {
private $mRootElemName = 'api';
public static $namespace = 'http://www.mediawiki.org/xml/api/';
private $mDoubleQuote = false;
private $mXslt = null;
@ -66,7 +67,7 @@ class ApiFormatXml extends ApiFormatBase {
}
$this->printText(
self::recXmlPrint( $this->mRootElemName,
$this->getResultData(),
array( 'xmlns' => self::$namespace ) + $this->getResultData(),
$this->getIsHtml() ? - 2 : null,
$this->mDoubleQuote
)