XML Digital Signature Error “The location of where to insert the Signature was not found.”

If your application fails to to sign XML and the XmlDSigGen.LastErrorText contains the error “The location of where to insert the Signature was not found.”, it means the location your application specified to put the Signature does not exist in the XML that is to be signed. For example, if you wish to sign this XML: <abc> <xyz>test</xyz> </abc> and […]

Malaysia E-Invoicing (MyInvois) User Questions Answered

(Questions paraphrased and published here with prior permission from the user.) Question 1 Our application is file-server based which can be accessed by multiple users over LAN. Quite likely, there will be multiple users and/or applications submitting their e-invoices. Can one certificate file be shared and used by multiple applications? What are the differences between the two certificate types and […]

XmlDSig Error: Did not find same-document Reference Id

If signing XML fails with the following message in the LastErrorText: … Doing first SAX parse… checkAllReferencesFound: passNumber: 1 reference: Did not find same-document Reference Id referenceId: id-1234567890 –reference –checkAllReferencesFound … It means there was no XML element in the XML you were trying to sign that has an Id attribute with the given value. For example, your source code […]

Problems with XML Signatures for TicketBAI and FacturaE in Spain are Fixed in v9.5.0.92

Certain problems regarding the signing of XML documents for TicketBAI (Basque Government) and FacturaE in Spain have been fixed.  At the time of writing this blog post (31-July-2022), Chilkat v9.5.0.92 is not yet released.  You may send email to info@chilkatsoft.com to request a pre-release.  Please indicate your programming language, operating system, etc. so that Chilkat knows exactly which build you […]

XML Signature Id attribute

In Chilkat v9.5.0.90, the Id attribute is automatically generated and added to the “Signature” tag when an XML digital signature is created.  This results in a Signature that begins like this: <Signature xmlns=”http://www.w3.org/2000/09/xmldsig#” Id=”signature-1502-9002-7096-7873″> Why did Chilkat do this?  It is because if you or somebody else wishes to subsequently add an Encapsulated Timestamp to the signature, then the Id […]