Using libtinyxml2 for parsing xml data