https://bugzilla.wikimedia.org/show_bug.cgi?id=24781

           Summary: define XML namespace for output of web API
           Product: MediaWiki
           Version: 1.17-svn
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: API
        AssignedTo: roan.katt...@gmail.com
        ReportedBy: brightb...@gmail.com
                CC: bryan.tongm...@gmail.com, s...@reedyboy.net,
                    vasi...@gmail.com, soxre...@gmail.com


It would be useful to define an XML namespace for any XML-Formatted output of
the web API. This would allow us to embed elements from that output in other
XML documents easily. My own use case is embedding <rc> tags in XMPP stanzas.

I would suggest to use the URI http://www.mediawiki.org/xml/api-0.1 for the
namespace. In practice, this would mean that the top level <api> tag returned
by the API would become:

<api xmlns="http://www.mediawiki.org/xml/api-0.1";>

This should have no impact whatsoever on backward compatibility, except perhaps
for clients processing the XML using naive regular expressions. I believe it
would be ok to break those, since they rely on things that are never guaranteed
in XML.

-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to