EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Generete Digestvalue, x509Certificate and signaturevalue

Posted: 09/25/2009 08:12:54
by Gabriel Herdt (Standard support level)
Joined: 04/09/2008
Posts: 37

Hi again,
In my procedure

Parameter FXMLDocument.OuterXML have value =
Parameter have value= <?xml version="1.0" encoding="utf-8"?>
<enviNFe xmlns="http://www.portalfiscal.inf.br/nfe" versao="1.10"><idLote>38310</idLote><NFe xmlns="http://www.portalfiscal.inf.br/nfe"> ...  

But save value =
Parameter have value= <?xml version="1.0" encoding="utf-8"?>
<enviNFe xmlns="http://www.portalfiscal.inf.br/nfe" versao="1.10"><idLote>38310</idLote><NFe> ...  

I Can Resolve this problem? My Tag <NFe> differs.

Procedure TRDmConBas.SalvaArq(Caminho: string);
  F: {$ifndef DELPHI_NET}TFileStream{$else}FileStream{$endif};
  {$ifndef DELPHI_NET}
  F := TFileStream.Create(Caminho, fmCreate or fmOpenWrite);
  F := System.IO.FileStream.Create(Caminho, FileMode.Create, FileAccess.ReadWrite);
    MessageDlg('salva- '+FXMLDocument.OuterXML, mtWarning, [mbOK], 0);
    FXMLDocument.SaveToStream(F, xcmCanon, 'utf-8');
    on E : Exception do
      MessageDlg('Error: ' + E.Message, mtError, [mbOk], 0);


Gabriel Herdt
Posted: 09/25/2009 11:45:56
by Eugene Mayevski (Team)

Is this a new problem? If yes, please re-post it as a separate topic and explain where is the XML content taken from.

Sincerely yours
Eugene Mayevski
Posted: 03/02/2010 16:32:54
by Marcio Lima (Basic support level)
Joined: 03/02/2010
Posts: 1


i from Brazil, i need sign a XML for example:

<GerarNfseEnvio xmlns="http://www.abrasf.org.br/nfse.xsd">
<LoteRps Id="lote" versao="1.00">
<----- here

<----- here


have example?


Márcio L
Posted: 03/03/2010 07:46:28
by Dmytro Bogatskyy (Team)

You can use XMLBlackbox\Signer sample. Just need to sign an xml document twice.
The placement of the signature is controlled using ElXMLSigner.Save method (in the sample it is controlled basing on a selected node in the tree). You could fill the references (what you sign) depending on your requirements (the sample also use a selected node).
Futher questions please post in a separate topic or to Helpdesk



Topic viewed 63277 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS business operates as a division of /n software, inc. For more information, please read the announcement.

Got it!