Created
January 27, 2018 02:33
-
-
Save Fhernd/7548f86f48c5e84b64d26987968e7049 to your computer and use it in GitHub Desktop.
Lectura de un archivo (documento) XML en Python.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment