XML Signature for Guatemala Fel Factura Electronica

(Chilkat is going to begin posting about the ongoing work with customers involving smart cards and tokens used for signing PDFs and XML invoices, etc.)

Chilkat is helping a customer with XML Signatures for Guatemala Fel Factura Electronica, which is to sign XML that begins like the following:

<?xml version="1.0" encoding="utf-8"?>
<dte:GTDocumento xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Version="0.1" xsi:schemaLocation="http://www.sat.gob.gt/dte/fel/0.2.0 GT_Documento-0.2.1.xsd" xmlns:dte="http://www.sat.gob.gt/dte/fel/0.2.0">
<dte:SAT ClaseDocumento="dte">
<dte:DTE ID="DatosCertificados">

It is believed that the server receiving the signed XML does not like when shorthand XML ends without a SPACE char preceding the “/>”

For example:

This is accepted:  CodigoMoneda=”GTQ” />

This gets rejected:   CodigoMoneda=”GTQ”/>