This video explains how to parse a simple XML document using the ESP32 and the Arduino core. In this video we will use the TinyXML-2 library.
Note: On the video, I've mistakenly mentioned that the output of the FirstChildElement method is a XMLDocument object pointer, but it is a XMLElement object pointer.
In case of error, the QueryIntText method returns:
- XML_CAN_NOT_CONVERT_TEXT: if the text cannot be converted to the requested type (int)
- XML_NO_TEXT_NODE if there is no child text to query.
Tutorials Writer: Techtutorialsx