Answers for "Example1:Reading xml file data..!! import xml.etree.cElementTree as ET tree=ET.ElementTree(file='books.xml') root=tree.getroot() for data in root: print(data.get('id'))"

0

python elementtree load from string

from xml.etree.ElementTree import XML, fromstring
myxml = fromstring(text)
Posted by: Guest on May-27-2020

Code answers related to "Example1:Reading xml file data..!! import xml.etree.cElementTree as ET tree=ET.ElementTree(file='books.xml') root=tree.getroot() for data in root: print(data.get('id'))"

Python Answers by Framework

Browse Popular Code Answers by Language