Bom dia,
Estou utilizando a função ACBrNFSe1.NotasFiscais.Assinar para assinar o XML mas está retonando o erro:
Não foi possível carregar o arquivo: <Rps xmlns:ns4=""><Signature xmlns="http://www.w3.org/2000/09/xmldsig#"><SignedInfo><CanonicalizationMethodAlgorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /><SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" /><Reference URI=""><Transforms><Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" /><Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" /></Transforms><DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /><DigestValue></DigestValue></Reference></SignedInfo><SignatureValue></SignatureValue><KeyInfo><X509Data><X509Certificate></X509Certificate></X509Data></KeyInfo></Signature></Rps>.
Segue a instrução utilizada e em anexo o xml.
ACBrNFSe1.NotasFiscais.Clear;
ACBrNFSe1.NotasFiscais.LoadFromFile('c:\temp\xx.xml');
ACBrNFSe1.NotasFiscais.Assinar;
ACBrNFSe1.NotasFiscais.Valida;
Como resolver?
Fico no aguardo,
Obrigado!
Teste.xml