Hello,
is there someone that can help me about the syntactic form of the file XML for the italian "FATTURA PA"?
From 2017/01/01 is changed the file's form (rel 1.2), and the file created by my procedure is not accepted from the SDI system (outcome: "error 0200 - file not conform to format - The published version invoiceis not present among those admitted").
The file header contains (I carry a snippet):

<?xml version="1.0" encoding="UTF-8"?> 
<p:FatturaElettronica versione="1.2" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:p="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2" xmlns:xsi="http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd"> 
     <FatturaElettronicaHeader> 
          <DatiTrasmissione>
            ...

Can you help me to understand where is the error?
Thanks in advance
Antonio BIANCA

Hi,

as the error states the format of the invoice is not recognized by their system, you are showing only the namespaces in the header of the XML document. The document must conform to these namespaces. So if the namespace xlmns:p defines nodes like <p:FatturaElettronica> the following:

<FatturaElettronicaHeader> 
      <DatiTrasmissione>

Will probably be:

<p:FatturaElettronicaHeader> 
      <p:DatiTrasmissione>

Ans so on. Verify if there are nodes that are breaking these rules. If you have difficulties, please share a full example of this document and the related documentation.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.