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?


Thanks for any guidance — jay

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


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