'XML reading from REST API in RuleChain (Thingsboard)

I'm trying to read external data with REST API as in this tutorial.

https://thingsboard.io/docs/user-guide/rule-engine-2-0/tutorials/get-weather-using-rest-api-call/

The problem is that my server answers with XML text and not with a JSON payload. For this reason, the (blue) Script node within RuleChain does not accept the input and I cannot parse the XML text.

Does anyone know how to get around the problem? Should I use some other node? Or is there no solution?

Thank you.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source