ESP32 Arduino: Parsing XML @techtutorialsx11
ESP32 Arduino: Parsing XML  @techtutorialsx11
Uploaded December 2019 | Updated September 2026, 1 week ago
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.

Tested on an ESP32 FireBeetle board from DFRobot: dfrobot.com/product-1590.html

TinyXML2 GitHub page: github.com/leethomason/tinyxml2
TinyXML-2 Documentation page: leethomason.github.io/tinyxml2/index.html

Parse method documentation: leethomason.github.io/tinyxml2/classtinyxml2_1_1_x_m_l_document.html#a1819bd34f540a7304c105a6232d25a1f
FirstChild method documentation: leethomason.github.io/tinyxml2/classtinyxml2_1_1_x_m_l_node.html#ae7dc225e1018cdd685f7563593a1fe08
FirstChildElement method documentation: leethomason.github.io/tinyxml2/classtinyxml2_1_1_x_m_l_node.html#a1795a35852dc8aae877cc8ded986e59b
QueryIntText method documentation: leethomason.github.io/tinyxml2/classtinyxml2_1_1_x_m_l_element.html#a926357996bef633cb736e1a558419632

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.
ESP32 Arduino: Parsing XMLESP32 Arduino: HTTP GET RequestsESP32 / ESP8266 cpplinq: filtering arrayPython pyttsx speech synthesis: changing speech rate and volumeESP32 Arduino: HTTP/2 GET requestESP32 Espruino: Scanning WiFi networksESP8266 74HC595 SPI data transferESP8266 74HC595 connectionESP8266: Controlling two chained 74HC595ESP32 / ESP8266 MicroPython: Lambda functionsESP32 Arduino: HTTP Web Server over soft APESP32 Espruino: Applying the map function to arrays
Techtutorialsx |

ESP32 Arduino: Parsing XML

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER