[Mediawiki-api] Problem converting new XML format to JSON

Platonides platonides at gmail.com
Sun Jun 28 17:09:46 UTC 2009


Borort wrote:
> Dear all,
>  
> I have tried to convert XML format (e.g.
> http://en.wikipedia.org/w/api.php?action=opensearch&search=apple&format=xml
> <http://en.wikipedia.org/w/api.php?action=opensearch&search=apple&format=xml>) to
> JSON format by using xml2json
> (http://www.thomasfrank.se/xml_to_json.html) . This worked well a couple
> of months ago. However recently there is an error with the new XML
> format that includes: xml:space="preserve" as attribute for each node.
>  
> I wonder how this problem could be solved.
>  
> Best,
>  
> Borort

Report to xml2json developers that their tool doesn't support
xml:space="preserve" attribute.
Alternatively, you could use
http://en.wikipedia.org/w/api.php?action=opensearch&search=apple&format=json



More information about the Mediawiki-api mailing list