Hola, tengo un inconveniente al recorrer un ciclo For con nodos de un factura XML. Utilicé «archivo XML a diccionario» y la variable quedaria asi… dicc_xml:{‘cfdi:Comprobante’: {‘@xmlns:cfdi’: ‘http://www.sat.gob.mx/cfd/3’, ‘@xmlns:implocal’: ‘http://www.sat.gob.mx/implocal’, ‘@xmlns:xsi’: ‘http://www.w3.org/2001/XMLSchema-instance’, ‘@Certificado’: ‘MIIFyjCCA7KgAwIBAgIUMzAwMDEwMDAwMDA0MDAwMDI0NTAwDQYJKoZIhvcNAQELBQAwggErMQ8wDQYDVQQDDAZBQyBVQVQxLjAsBgNVBAoMJVNFUlZJQ0lPIERFIEFETUlOSVNUUkFDSU9OIFRSSUJVVEFSSUExGjAYBgNVBAsMEVNBVC1JRVMgQXV0aG9yaXR5MSgwJgYJKoZIhvcNAQkBFhlvc2Nhci5tYXJ0aW5lekBzYXQuZ29iLm14MR0wGwYDVQQJDBQzcmEgY2VycmFkYSBkZSBjYWRpejEOMAwGA1UEEQwFMDYzNzAxCzAJBgNVBAYTAk1YMRkwFwYDVQQIDBBDSVVEQUQgREUgTUVYSUNPMREwDwYDVQQHDAhDT1lPQUNBTjERMA8GA1UELRMIMi41LjQuNDUxJTAjBgkqhkiG9w0BCQITFnJlc3BvbnNhYmxlOiBBQ0RNQS1TQVQwHhcNMTkwNjE3MjIzNzI2WhcNMjMwNjE3MjIzNzI2WjCB8TEoMCYGA1UEAxMfRVNDVUVMQSBXSUxTT04gRVNRVUlWRUwgUyBERSBDVjEoMCYGA1UEKRMfRVNDVUVMQSBXSUxTT04gRVNRVUlWRUwgUyBERSBDVjEoMCYGA1UEChMfRVNDVUVMQSBXSUxTT04gRVNRVUlWRUwgUyBERSBDVjElMCMGA1UELRMcRVdFMTcwOTA0NVUwIC8gS0FITzY0MTEwMUIzOTEeMBwGA1UEBRMVIC8gS0FITzY0MTEwMUhOVExLUzA2MSowKAYDVQQLEyFFU0NVRUxBIFdJTFNPTiBFU1FVSVZFTCBTQSBERSBDViAw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qMR9IqfFm7QtIS8fJCmKWjbXdwDAI0AtBeUmPbsGXdOJcwlYY6mXeJAk5ORrqpBQ==’, ‘@CondicionesDePago’: ‘todas’, ‘@Fecha’: ‘2019-10-07T09:00:00’, ‘@Folio’: ‘1898533’, ‘@FormaPago’: ’01’, ...
Home/ciclo for xml