Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import xml.etree.ElementTree as ET
- estructura_xml = ET.parse('CatalogoProductos.xml')
- # Obtiene el elemento raíz:
- raiz = estructura_xml.getroot()
- for elemento_hijo in raiz:
- print (elemento_hijo.tag)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement