jweinst1
1/30/2017 - 4:00 AM

xmp tricks in python

xmp tricks in python

>>> ET.tostring(root)
'<add>5</add>'
>>> tree = ET.parse('xenon.xml')
>>> root = tree.getroot()
>>> root.tag
'print'
>>> root.text
'5, 7, "hello"'