y = y.create("RichiestaCertificatoDispositivo").attribute("xmlns:ds","http://www.w3.org/2000/09/xmldsig#").attribute("xmlns:p","http://ivaservizi.agenziaentrate.gov.it/docs/xsd/corrispettivi/v1.0").attribute("xmlns:xsi","http://www.w3.org/2001/XMLSchema-instance") _
.element("Csr").text(CSR).up _
.element("Dispositivo") _
.element("Tipo").text("DM").up.up.up _
.element("TecnicoVerificatore") _
.element("CodiceFiscale").text(CodiceFiscale).up _
.element("PIvaSocieta") _
.element("IdPaese").text("IT").up _
.element("IdCodice").text(CodiceDitta).up.up.up _
.element("ds:Signature").attribute("xmlns:ds","http://www.w3.org/2000/09/xmldsig#") _
.element("ds:SignedInfo") _
.element("ds:CanonicalizationMethod").attribute("Algorithm","http://www.w3.org/TR/2001/REC-xml-c14n-20010315").up _
.element("ds:SignatureMethod").attribute("Algorithm","http://www.w3.org/2001/04/xmldsig-more#rsa-sha256").up _
.element("ds:Reference").attribute("URI","") _
.element("ds:Transforms") _
.element("ds:Transform").attribute("Algorithm","http://www.w3.org/2000/09/xmldsig#enveloped-signature").up.up _
.element("ds:DigestMethod").attribute("Algorithm","http://www.w3.org/2001/04/xmlenc#sha256").up _
.element("ds:DigestValue").text(DigestValue).up.up.up _
.element("ds:SignatureValue").text(SignatureValue).up _
.element("ds:KeyInfo") _
.element("ds:X509Data") _
.element("ds:X509Certificate").text(x509).up