Why won’t this XML parse into dictionary?

I’m trying to convert XML (from WolframAlpha API) into a dictionary using Get Dictionary from Text action.

It is not converting. I’m assuming it is malformed XML, but I’m not familiar enough with formatting to see where the issue might be. Any thoughts?

https://www.icloud.com/shortcuts/8a96c5f589cd4d389719e8c6df7a0599

Thanks for any guidance — jay

Add &output=json as a querystring parameter and you’ll get the results in JSON instead of XML.

https://products.wolframalpha.com/api/documentation/#output-parameter

ahhh…indeed… I should have thought to attack it at the source! This takes care of it. THANKS!!

I was going to say: Does Shortcuts really have an XML parser action?

It doesn’t, but “get dictionary from input” can usually handle XML as well as JSON.

1 Like