Hi everyone!
After executing ImportNode function, the string contained in the XmlElement is the following:
<cfdi:Comprobante xmlns:cfdi="http://www.sat.gob.mx/cfd/3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:pago10="http://www.sat.gob.mx/Pagos" xsi:schemaLocation="http://www.sat.gob.mx/cfd/3 http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv33.xsd http://www.sat.gob.mx/Pagos http://www.sat.gob.mx/sitio_internet/cfd/Pagos/Pagos10.xsd" Version="3.3" Serie="A" Folio="1" Fecha="2017-10-02T16:55:34" SubTotal="0" Total="0" TipoDeComprobante="P" LugarExpedicion="75820" Certificado="" Sello=""/>
Then i execute the next instruction:
Comprobante = m_xmlDOM.ImportNode(Comprobante, True)
And the result is:
<cfdi:Comprobante xmlns:cfdi="http://www.sat.gob.mx/cfd/3" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.sat.gob.mx/cfd/3 http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv33.xsd http://www.sat.gob.mx/Pagos http://www.sat.gob.mx/sitio_internet/cfd/Pagos/Pagos10.xsd" Version="3.3" Serie="A" Folio="1" Fecha="2017-10-02T16:55:34" SubTotal="0" Total="0" TipoDeComprobante="P" LugarExpedicion="75820" Certificado="" Sello=""/>
As you can see, the namespace deleted is:
xmlns:pago10="http://www.sat.gob.mx/Pagos"
Any clue what am i doing wrong?
regards,
Sorry guys there is a mistake in my last post. Here is ok. hope someone can give me hint.
BEFORE executing ImportNode function, the string contained in the XmlElement is the following:
<cfdi:Comprobante xmlns:cfdi=“http://www.sat.gob.mx/cfd/3” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xmlns:pago10=“http://www.sat.gob.mx/Pagos” xsi:schemaLocation=“http://www.sat.gob.mx/cfd/3 http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv33.xsd http://www.sat.gob.mx/Pagos http://www.sat.gob.mx/sitio_internet/cfd/Pagos/Pagos10.xsd” Version=“3.3” Serie=“A” Folio=“1” Fecha=“2017-10-02T16:55:34” SubTotal=“0” Total=“0” TipoDeComprobante=“P” LugarExpedicion=“75820” Certificado="" Sello=""/>
Then i execute the next instruction:
Comprobante = m_xmlDOM.ImportNode(Comprobante, True)
And the result is:
<cfdi:Comprobante xmlns:cfdi=“http://www.sat.gob.mx/cfd/3” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance” xsi:schemaLocation=“http://www.sat.gob.mx/cfd/3 http://www.sat.gob.mx/sitio_internet/cfd/3/cfdv33.xsd http://www.sat.gob.mx/Pagos http://www.sat.gob.mx/sitio_internet/cfd/Pagos/Pagos10.xsd” Version=“3.3” Serie=“A” Folio=“1” Fecha=“2017-10-02T16:55:34” SubTotal=“0” Total=“0” TipoDeComprobante=“P” LugarExpedicion=“75820” Certificado="" Sello=""/>
As you can see, the namespace deleted is:
xmlns:pago10=“http://www.sat.gob.mx/Pagos”
Any clue what am i doing wrong?
regards,
got it guys, thank you anyway!