Have been playing with custom API modules and been a bit frustrated with the XML...
authorBrion Vibber <brion@users.mediawiki.org>
Thu, 3 Jul 2008 21:25:20 +0000 (21:25 +0000)
committerBrion Vibber <brion@users.mediawiki.org>
Thu, 3 Jul 2008 21:25:20 +0000 (21:25 +0000)
commit4e4be177e402dc30dbd684ed3a642da903a835d5
tree7c710ae03a5dac8aceb22b5b0ecff27689e557c5
parent009e1897ee3e8737b0c1feccfc1743461423918d
Have been playing with custom API modules and been a bit frustrated with the XML output mode...
Adding pseudo-element _attribs alongside _element for XML output. There doesn't seem to be a good way currently to specify both attributes *and* subelements -- '*' lets you have text and attributes, but not sub-elements and attributes. Contents of _attribs will be added as attributes without disturbing the sub-elements.
includes/api/ApiFormatXml.php