updated with new v3 support, removed need for xml_tree
added demo