Skip to content
English
  • There are no suggestions because the search field is empty.

Signed document: how the PDF and the XML work and why two files?

When a document is fully signed in Mifiel, two files are generated: a PDF and an XML. How do these files work? Why split it into two?

Once all signers have signed a document on Mifiel, a certificate of data preservation is issued for the data message. Two files are then generated: an XML file and a PDF.

Some e-signature platforms produce a single final signed file, usually a PDF. At Mifiel, we chose to split it into a PDF and an XML file because both formats were already used together in electronic invoices (CFDIs), a system judges are already familiar with.

Here’s how the XML and PDF files work at Mifiel:

XML

The XML file is a structured set, or container, of data that is fully legally valid. It includes:

  • The hash of the original document.
  • The original document, encoded in a format called “Base64.”
  • Signature, signer, and certificate details:
    • Full name or legal business name.
    • Email address.
    • Date and time of signing.
    • Supported by:
      • For an advanced electronic signature: the Trust Service Provider (PSC) that issued it.
      • For an electronic signature with identity verification: facial biometrics with a liveness check, validated against a government-issued ID.
    • Type of signature:
      • For an advanced electronic signature: the signer’s RFC (Mexican tax ID).
      • For an electronic signature with identity verification: a selfie and photos of the signer’s government-issued ID, as evidence that the signature can be attributed to them.
    • Certificate number.
    • Certificate issuer.
    • Signature algorithm (encryption).
    • Electronic signature (a hash encrypted uniquely with each private key).
  • Certificate of data preservation details:
    • Timestamp showing the date and time of issuance.
    • Certificate issuer.
    • Record of data integrity (the hash of the signed document, combined with the date and time of issuance and encrypted with the issuer’s private key).

You can verify the integrity of this file and the authenticity of its signatures with the Mifiel Verifier, an auditable tool.

PDF

It is a visual representation of the XML that can be easily printed and interpreted. Although it has no legal validity, in case of trial it is essential as a support for the judge and the parties

At the end it includes one or more signature pages with relevant information of the document, the signatures and the signers, and as its name says, the characters that make up each electronic signature stamped.