Skip to main content
Question

Cannot parse the input xml (XML doesn't have any error)


Forum|alt.badge.img+6
  • Navigator | Tier 3
  • 11 replies

Hello friends,

When trying to obtain the information from an XML, I get the following error: "Cannot parse the input xml", I have already validated the XML on several websites and there is no error. I don't know what could be happening. The error occurs when using the Start session command. Any ideas?

 

 

This is the XML

<?xml version="1.0" encoding="utf-8"?>
<factura id="comprobante" version="1.1.0">
  <infoTributaria>
    <ambiente>2</ambiente>
    <tipoEmision>1</tipoEmision>
    <razonSocial>PAYLESS SHOESOURCE ECUADOR CIA. LTDA.</razonSocial>
    <nombreComercial>Payless ShoeSource 050</nombreComercial>
    <ruc>1791807529001</ruc>
    <claveAcceso>2402202301179180752900120500020000620461234567816</claveAcceso>
    <codDoc>01</codDoc>
    <estab>050</estab>
    <ptoEmi>002</ptoEmi>
    <secuencial>000062046</secuencial>
    <dirMatriz>Francisco Robles 653 y Av. Amazonas</dirMatriz>
  </infoTributaria>
  <infoFactura>
    <fechaEmision>24/02/2023</fechaEmision>
    <dirEstablecimiento>CCIAV. AMAZONAS 36-152 Y AV. NACIONES UNIDASPICHINCHA, QUITO</dirEstablecimiento>
    <contribuyenteEspecial>590</contribuyenteEspecial>
    <obligadoContabilidad>SI</obligadoContabilidad>
    <tipoIdentificacionComprador>05</tipoIdentificacionComprador>
    <razonSocialComprador>NNNNNNNN</razonSocialComprador>
    <identificacionComprador>NNNNNNN</identificacionComprador>
    <direccionComprador>NNNNNNN</direccionComprador>
    <totalSinImpuestos>39.37</totalSinImpuestos>
    <totalDescuento>16.87</totalDescuento>
    <totalConImpuestos>
      <totalImpuesto>
        <codigo>2</codigo>
        <codigoPorcentaje>2</codigoPorcentaje>
        <baseImponible>39.37</baseImponible>
        <tarifa>12.00</tarifa>
        <valor>4.72</valor>
      </totalImpuesto>
    </totalConImpuestos>
    <propina>0.00</propina>
    <importeTotal>44.09</importeTotal>
    <moneda>DOLAR</moneda>
    <pagos>
      <pago>
        <formaPago>19</formaPago>
        <total>44.09</total>
        <plazo>0</plazo>
        <unidadTiempo>Días</unidadTiempo>
      </pago>
    </pagos>
    <valorRetIva>0.00</valorRetIva>
    <valorRetRenta>0.00</valorRetRenta>
  </infoFactura>
  <detalles>
    <detalle>
      <codigoPrincipal>1954942038</codigoPrincipal>
      <descripcion>CASUAL DE DAMAS</descripcion>
      <cantidad>1.000000</cantidad>
      <precioUnitario>56.240000</precioUnitario>
      <descuento>16.87</descuento>
      <precioTotalSinImpuesto>39.37</precioTotalSinImpuesto>
      <impuestos>
        <impuesto>
          <codigo>2</codigo>
          <codigoPorcentaje>2</codigoPorcentaje>
          <tarifa>12.00</tarifa>
          <baseImponible>39.37</baseImponible>
          <valor>4.72</valor>
        </impuesto>
      </impuestos>
    </detalle>
  </detalles>
  <infoAdicional>
    <campoAdicional nombre="Email">NNNNNNNN</campoAdicional>
    <campoAdicional nombre="Referencia">050002000062046</campoAdicional>
    <campoAdicional nombre="Dir.">NNNNNNN</campoAdicional>
  </infoAdicional><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="Signature772172" xmlns:etsi="http://uri.etsi.org/01903/v1.3.2#"><ds:SignedInfo Id="Signature-SignedInfo200357"><ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/><ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/><ds:Reference Id="Reference-ID-513982" URI="#comprobante"><ds:Transforms><ds:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/></ds:Transforms><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>XaaJr4FSRdtMszR/IYD6nzCaZuA=</ds:DigestValue></ds:Reference><ds:Reference URI="#Certificate1722078"><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>AQOSHXgmnu1s/qTcn8B1Wb/APSk=</ds:DigestValue></ds:Reference><ds:Reference Type="http://uri.etsi.org/01903#SignedProperties" URI="#Signature285532-SignedProperties123280"><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>UYm83dZcfhmwJxu2mPcA+rSJegQ=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue Id="SignatureValue939704">
cgetdHcv2XwH6JUf3w9cCtLsFX7HqdYNxt7JYtggxhi24eYzqToH9fRhMw2Tk18a7SQAqi5f0shw
EnD00HyZG7uj4txrD9/qXYGzPMmKXivwsB+vDgZMaKX3Ka9zw/HkAi0Hn7KCI4M47P0ttVZA2EOU
qq+cMKeZJIga8zm6fMqizhRO77+53svf26qmo4sbAL0bwCgikuUxhbzpEaY8s+GvZx+jzGG3zkCW
uZT4lOSxQ0uwzVhiskjcGzbPPC5bya6G0lNKS4MEE+cp2rrLnZBnI0FNCwQnDqykl9q0Uv5TPDkk
BS5hUSK4xCveyn9t2sX98/UJUSSaOfIalJVitQ==
    </ds:SignatureValue><ds:KeyInfo Id="Certificate1722078"><ds:KeyValue><ds:RSAKeyValue><ds:Modulus>
6V0gcReDQ9pfy5GhtdDwQ/XW3c85bz0jIPdNZfooPninrvvshsk/3+sAbGcwq6teIrOX8I2OZEHz
apBWHeo/e7pI34QAdx7w7ZGgyNbiaLMJVfghBJZELQlztkVUubfQw/0IykdmSzYB5FhiduI3nZkU
D7TiteXJaeElQvndwwP3WXlOnQgRONvAW8AJaRn/Vt02+BXNsxNkhQTNg/3YbS7GWWruJXhaZGIR
ppL54ggcJChyFkSK8S3x3gmeTMRJt+j6EJ9hhf+5xay5QlUqYUchL9k5dN++3ZypX07otC846hXv
e2O0IwEA8NywAoCIdAD4Qg74EIMmyP4aZT43kw==
                </ds:Modulus><ds:Exponent>AQAB</ds:Exponent></ds:RSAKeyValue></ds:KeyValue><ds:X509Data><ds:X509Certificate>
MIIMDjCCCfagAwIBAgIEEQ3brDANBgkqhkiG9w0BAQsFADCBmTELMAkGA1UEBhMCRUMxHTAbBgNV
BAoMFFNFQ1VSSVRZIERBV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U0hPRVNPVVJDRSBFQ1VBRE9SIENJQSBM
VERBMB0GCisGAQQBgqZyAwsEDwwNMTc5MTgwNzUyOTAwMTASBgorBgEEAYKmcgMdBAQMAk5vMBcG
CisGAQQBgqZyAwQECQwHQU5aVUxFUzAaBgorBgEEAYKmcgMIBAwMCjA5Njc5ODQ4NjMwDQYJKoZI
hvcNAQELBQADggIBAFyfMMXPsOl4ViG5YPalkgYu5NTKMX4a9DeiUj6Rlt2YoZ0NJNZNH7hAFwaK
UFWXFvfWXjE02laLicoLcpVXFCZHHcsi0NwX/4SnXqQ3VUQB5NOA3KtNUeOvDPmjVPHeRUPF6kve
q7w3yTIEecz4slOwu+JDAX1/tGLgd5ERblwWUW1vIgOUTg+dI15gSyFYiMeBmPp68+actajopOB6
FYr22JxW8cUN1BW/fNHN0qZytTu8Cyk410ubeZSdfYKAz6uUSfxWqQlmR0+bYqhyRIKR52JOlYHO
pyul//TOW3SlCFUTB31v530bLzOqSTbhLFJmC1Hkqw+GUXkjBdAwKB9fa0d9ATryj/dh75kdVGN2
W8EkK7fOpQ+hE0Zd1wQ1GmHM8QF2wYjjjNzCw36rZM9Y7qBi2hSlUdlf1mNVMhUJnp7MZC5hvVJg
LwYJF8NwhCeo/yoCpKYUS0Uik2cEojdKmBOvLefPdhYPFz3L98Fq3cC/aR95OOPQWixGSLcjX9L0
jxVi9JxB+/HSuBfMxrxP1gdW9u+6NP99bTZp8Lm1tOVCJyk59xxt0Ch9bHzeJ12xruSzacxzwrI4
VzxCLdSdkv6gCeYLGwSXHvILAdFcq7M7P8Ek7VDYqycQ/8qdbcQtaV1WVTWciFDkD+1TqofEPjX0
NMSqDbg+MWPN6Y7w
            </ds:X509Certificate></ds:X509Data></ds:KeyInfo><ds:Object Id="Signature285532-Object48187"><etsi:QualifyingProperties xmlns:etsi="http://uri.etsi.org/01903/v1.3.2#" Target="#Signature772172"><etsi:SignedProperties Id="Signature285532-SignedProperties123280"><etsi:SignedSignatureProperties><etsi:SigningTime>2023-02-24T11:44:50-05:00</etsi:SigningTime><etsi:SigningCertificate><etsi:Cert><etsi:CertDigest><ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/><ds:DigestValue>lHKO+O4rWhXP9o9pWm9rhlRbqiM=</ds:DigestValue></etsi:CertDigest><etsi:IssuerSerial><ds:X509IssuerName>CN=AUTORIDAD DE CERTIFICACION SUBCA-2 SECURITY DATA, OU=ENTIDAD DE CERTIFICACION DE INFORMACION, O=SECURITY DATA S.A. 2, C=EC</ds:X509IssuerName><ds:X509SerialNumber>286120876</ds:X509SerialNumber></etsi:IssuerSerial></etsi:Cert></etsi:SigningCertificate></etsi:SignedSignatureProperties><etsi:SignedDataObjectProperties><etsi:DataObjectFormat ObjectReference="#Reference-ID-513982"><etsi:Description>contenido comprobante</etsi:Description><etsi:MimeType>text/xml</etsi:MimeType></etsi:DataObjectFormat></etsi:SignedDataObjectProperties></etsi:SignedProperties></etsi:QualifyingProperties></ds:Object></ds:Signature>
</factura>

3 replies

Padmakumar
Forum|alt.badge.img+13
  • Navigator | Tier 3
  • 785 replies
  • March 10, 2023

Hi @Midna08 ,

 

I have tested with the same from my end. It is working fine, and I am able to get node details as well. Below is FYI.

 

 


Forum|alt.badge.img+6
  • Author
  • Navigator | Tier 3
  • 11 replies
  • March 10, 2023

@Padmakumar hmm so what could be wrong with my bot? :(


Padmakumar
Forum|alt.badge.img+13
  • Navigator | Tier 3
  • 785 replies
  • March 10, 2023
Midna08 wrote:

@Padmakumar hmm so what could be wrong with my bot? :(

 

Well, I am using the below XML package. Please check yours and see after changing it.

 

 


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings