Skip to content

Instantly share code, notes, and snippets.

@3v1n0
Created October 21, 2019 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 3v1n0/d9b26a1ec4c5f1a0ac8f2168f436f899 to your computer and use it in GitHub Desktop.
Save 3v1n0/d9b26a1ec4c5f1a0ac8f2168f436f899 to your computer and use it in GitHub Desktop.
Freedesktop MIME info for Italian Electronic Invoice (Fattura Elettronica) XML files
<!--
To associate the Italian Electronic Invoices (Fattura Elettronica) to a given
program, copy this to
~/.local/share/mime/packages/fattura-elettronica.xml
And run
update-mime-database ~/.local/share/mime
Then those .xml files may have a different behavior than standard .xml files
-->
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
<mime-type type="application/fattura-elettronica+xml">
<comment>Italian Electronic Invoice</comment>
<comment xml:lang="it">Fattura Elettronica</comment>
<acronym>FE</acronym>
<expanded-acronym>Fattura Elettronica</expanded-acronym>
<generic-icon name="x-office-spreadsheet"/>
<glob pattern="*.xml" weight="1"/>
<glob pattern="*.xml.p7m" weight="1"/>
<magic priority="90">
<match type="string" offset="23:256" value=":FatturaElettronica">
<match type="string" offset="25:256" value="versione=&quot;FPR12&quot;"/>
</match>
</magic>
<sub-class-of type="application/xml"/>
<root-XML namespaceURI="http://ivaservizi.agenziaentrate.gov.it/docs/xsd/fatture/v1.2" localName="FatturaElettronica"/>
</mime-type>
</mime-info>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment