Index: trunk/phase3/includes/api/ApiFormatXml.php |
— | — | @@ -36,6 +36,7 @@ |
37 | 37 | class ApiFormatXml extends ApiFormatBase { |
38 | 38 | |
39 | 39 | private $mRootElemName = 'api'; |
| 40 | + public static $namespace = 'http://www.mediawiki.org/xml/api/'; |
40 | 41 | private $mDoubleQuote = false; |
41 | 42 | private $mXslt = null; |
42 | 43 | |
— | — | @@ -66,7 +67,7 @@ |
67 | 68 | } |
68 | 69 | $this->printText( |
69 | 70 | self::recXmlPrint( $this->mRootElemName, |
70 | | - $this->getResultData(), |
| 71 | + array( 'xmlns' => self::$namespace ) + $this->getResultData(), |
71 | 72 | $this->getIsHtml() ? - 2 : null, |
72 | 73 | $this->mDoubleQuote |
73 | 74 | ) |