Dear all,
 
I have tried to convert XML format (e.g. 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