PY
py
1
2
3
4
5
6
7
8
from xml.dom import minidom
# parse an xml file by name
list_to_write=[]
mydoc = minidom.parse(r"C:\content.xml")
nodes = mydoc.getElementsByTagName('text:p')
# total amount of items
print(len(nodes))
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run