$USD
  • EUR€
  • £GBP
  • $USD
TUTORIALS ESP32

ESP32 XML: Getting attribute of element

DFRobot Dec 18 2019 403


In this tutorial we are going to learn how to extract the value of an attribute from an element of a parsed XML document. We are going to be using the Arduino core running on the ESP32. We will be using the TinyXML-2 library.


Tested on an ESP32 FireBeetle board from DFRobot: 

https://www.dfrobot.com/product-1590.html


Previous introductory tutorial on the library: 



TinyXML-2 GitHub page: 

https://github.com/leethomason/tinyxml2


TinyXML-2 documentation page: 

http://leethomason.github.io/tinyxml2/index.html


QueryIntAttribute documentation: 

http://leethomason.github.io/tinyxml2/classtinyxml2_1_1_x_m_l_element.html#a8a78bc1187c1c45ad89f2690eab567b1



REVIEW