I have the following XML example
<?xml version="1.0"?>
<test>
<items>
<item>item 1</item>
<item>item 2</item>
</items>
</test>
I need to iterate over each tag in a for loop in python. If tried many things but I just can’t get it..
thanks for the help
I personally use
xml.etree.cElementTree, as I’ve found it works really well, it’s fast, easy to use, and works well with big (>2GB) files.In the interactive console