Data hosted with ♥ by
Pastebin.com
-
Download Raw
-
See Original
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
)