{"id":1714,"date":"2019-12-13T10:29:57","date_gmt":"2019-12-13T10:29:57","guid":{"rendered":"https:\/\/www.imprenditoriamo.it\/site\/?p=1714"},"modified":"2022-01-29T17:06:03","modified_gmt":"2022-01-29T17:06:03","slug":"xml-caratteri-non-ammessi","status":"publish","type":"post","link":"https:\/\/www.imprenditoriamo.it\/site\/xml-caratteri-non-ammessi\/","title":{"rendered":"XML caratteri non ammessi, come sostituirli nelle fatture elettroniche"},"content":{"rendered":"<p>&nbsp;<\/p>\n<p>Ci sono diversi caratteri che in un <strong>file xml<\/strong> non sono ammessi. Spesso questi <strong>caratteri speciali<\/strong>, come ad esempio i simboli delle <strong>valute<\/strong> (\u20ac, $, etc.) o la famosa <strong>&#8220;&amp;&#8221; commerciale<\/strong>, se inseriti all&#8217;interno della fattura elettronica, quindi nel codice xml,<strong> generano degli errori <\/strong>e ne compromettono l&#8217;invio.<\/p>\n<p>Vediamo come sostituirli, ma prima partiamo dallo spiegare che cos&#8217;\u00e8 un <strong>file Xml.<\/strong><\/p>\n<h2>Che cos&#8217;\u00e8 un file XML?<\/h2>\n<p>I file xml sono dei documenti creati grazie al <a href=\"https:\/\/it.wikipedia.org\/wiki\/XML\" target=\"_blank\" rel=\"noopener\"><strong>linguaggio XML<\/strong><\/a>, uno dei tanti linguaggi di programmazione informatica. Il linguaggio XML, \u00e8 molto simile al linguaggio HTML, uno dei pi\u00f9 famosi e pi\u00f9 usati nel mondo del web fin dalla sua creazione.<\/p>\n<p>Come il linguaggio HTML, il linguaggio XML, \u00e8 costituito da <strong>&#8220;tag&#8221;<\/strong>, che definiscono la<strong> struttura del documento <\/strong>e la modalit\u00e0 con cui tale documento deve essere memorizzato, visualizzato e inviato. La cosa pi\u00f9 interessante del linguaggio XML \u00e8 che permette agli utenti di <strong>creare propri tag<\/strong>, con i quali personalizzare il contenuto ed avere praticamente opzioni illimitate.<\/p>\n<p>Ecco perch\u00e9 questo tipo di linguaggio \u00e8 molto usato anche al di fuori del web ed \u00e8 diventato lo standard per i software che creano, inviano e permettono l&#8217;<strong>apertura delle fatture elettroniche.<\/strong><\/p>\n<p>&nbsp;<\/p>\n<h2>Xml caratteri non ammessi. Vediamo quali<\/h2>\n<p class=\"p1\">I <strong>caratteri xml non ammessi <\/strong>sono di diversi tipi, oltre ai caratteri speciali, troviamo anche gli apostrofi, le virgolette e le lettere accentate. Per il ministero questi caratteri sono quelli non ammessi pi\u00f9 utilizzati:<\/p>\n<p>&amp; &#8211; E commerciale<\/p>\n<p>\u201c\u201d &#8211; virgolette<\/p>\n<p>\u2018 &#8211; apostrofo<\/p>\n<p>&lt; &#8211; minore<\/p>\n<p>&gt; &#8211; maggiore<\/p>\n<p>&nbsp;<\/p>\n<p><strong>Xml caratteri non ammessi &#8211; come sostituirli<\/strong><\/p>\n<p>I caratteri non ammessi, per non generare errori, devono essere sostituiti con le rispettive\u00a0<strong>entit\u00e0 XML<\/strong>, ovvero\u00a0codici che interpretano il valore dei dati nel formato\u00a0<b>UTF-8<\/b>\u00a0(Unicode Transformation Format, 8 bit).<\/p>\n<p>Vediamo nella tabella quali sono le entit\u00e0 corrispondenti ai caratteri non ammessi:<\/p>\n<table class=\"tbl\" style=\"height: 315px;\" width=\"550\">\n<tbody>\n<tr>\n<th style=\"width: 198px;\">Codice ASCII<\/th>\n<th style=\"width: 149px;\">Carattere<\/th>\n<th style=\"width: 181px;\">Entit\u00e0 XML<br \/>\n(Unicode)<\/th>\n<\/tr>\n<tr>\n<td style=\"width: 198px;\">34<\/td>\n<td style=\"width: 149px;\">&#8220;<\/td>\n<td style=\"width: 181px;\">&amp;#34;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 198px;\">38<\/td>\n<td style=\"width: 149px;\">&amp;<\/td>\n<td style=\"width: 181px;\">&amp;#38;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 198px;\">39<\/td>\n<td style=\"width: 149px;\">&#8216;<\/td>\n<td style=\"width: 181px;\">&amp;#39;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 198px;\">60<\/td>\n<td style=\"width: 149px;\">&lt;<\/td>\n<td style=\"width: 181px;\">&amp;#60;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 198px;\">62<\/td>\n<td style=\"width: 149px;\">&gt;<\/td>\n<td style=\"width: 181px;\">&amp;#62;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>&nbsp;<\/p>\n<p><strong>Altri caratteri xml non ammessi:<\/strong><\/p>\n<table class=\"tbl\" style=\"height: 1899px;\" width=\"550\">\n<tbody>\n<tr>\n<th style=\"width: 203px;\">Codice ASCII<\/th>\n<th style=\"width: 152px;\">Carattere<\/th>\n<th style=\"width: 173px;\">Entit\u00e0 XML<br \/>\n(Unicode)<\/th>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">128<\/td>\n<td style=\"width: 152px;\">\u20ac<\/td>\n<td style=\"width: 173px;\">&amp;#128;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">169<\/td>\n<td style=\"width: 152px;\">\u00a9<\/td>\n<td style=\"width: 173px;\">&amp;#169;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">174<\/td>\n<td style=\"width: 152px;\">\u00ae<\/td>\n<td style=\"width: 173px;\">&amp;#174;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">192<\/td>\n<td style=\"width: 152px;\">\u00c0<\/td>\n<td style=\"width: 173px;\">&amp;#192;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">193<\/td>\n<td style=\"width: 152px;\">\u00c1<\/td>\n<td style=\"width: 173px;\">&amp;#193;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">194<\/td>\n<td style=\"width: 152px;\">\u00c2<\/td>\n<td style=\"width: 173px;\">&amp;#194;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">195<\/td>\n<td style=\"width: 152px;\">\u00c3<\/td>\n<td style=\"width: 173px;\">&amp;#195;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">196<\/td>\n<td style=\"width: 152px;\">\u00c4<\/td>\n<td style=\"width: 173px;\">&amp;#196;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">197<\/td>\n<td style=\"width: 152px;\">\u00c5<\/td>\n<td style=\"width: 173px;\">&amp;#197;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">198<\/td>\n<td style=\"width: 152px;\">\u00c6<\/td>\n<td style=\"width: 173px;\">&amp;#198;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">199<\/td>\n<td style=\"width: 152px;\">\u00c7<\/td>\n<td style=\"width: 173px;\">&amp;#199;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">200<\/td>\n<td style=\"width: 152px;\">\u00c8<\/td>\n<td style=\"width: 173px;\">&amp;#200;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">201<\/td>\n<td style=\"width: 152px;\">\u00c9<\/td>\n<td style=\"width: 173px;\">&amp;#201;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">202<\/td>\n<td style=\"width: 152px;\">\u00ca<\/td>\n<td style=\"width: 173px;\">&amp;#202;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">203<\/td>\n<td style=\"width: 152px;\">\u00cb<\/td>\n<td style=\"width: 173px;\">&amp;#203;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">204<\/td>\n<td style=\"width: 152px;\">\u00cc<\/td>\n<td style=\"width: 173px;\">&amp;#204;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">205<\/td>\n<td style=\"width: 152px;\">\u00cd<\/td>\n<td style=\"width: 173px;\">&amp;#205;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">206<\/td>\n<td style=\"width: 152px;\">\u00ce<\/td>\n<td style=\"width: 173px;\">&amp;#206;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">207<\/td>\n<td style=\"width: 152px;\">\u00cf<\/td>\n<td style=\"width: 173px;\">&amp;#207;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">208<\/td>\n<td style=\"width: 152px;\">\u00d0<\/td>\n<td style=\"width: 173px;\">&amp;#208;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">209<\/td>\n<td style=\"width: 152px;\">\u00d1<\/td>\n<td style=\"width: 173px;\">&amp;#209;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">210<\/td>\n<td style=\"width: 152px;\">\u00d2<\/td>\n<td style=\"width: 173px;\">&amp;#210;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">211<\/td>\n<td style=\"width: 152px;\">\u00d3<\/td>\n<td style=\"width: 173px;\">&amp;#211;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">212<\/td>\n<td style=\"width: 152px;\">\u00d4<\/td>\n<td style=\"width: 173px;\">&amp;#212;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">213<\/td>\n<td style=\"width: 152px;\">\u00d5<\/td>\n<td style=\"width: 173px;\">&amp;#213;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">214<\/td>\n<td style=\"width: 152px;\">\u00d6<\/td>\n<td style=\"width: 173px;\">&amp;#214;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">215<\/td>\n<td style=\"width: 152px;\">\u00d7<\/td>\n<td style=\"width: 173px;\">&amp;#215;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">216<\/td>\n<td style=\"width: 152px;\">\u00d8<\/td>\n<td style=\"width: 173px;\">&amp;#216;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">217<\/td>\n<td style=\"width: 152px;\">\u00d9<\/td>\n<td style=\"width: 173px;\">&amp;#217;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">218<\/td>\n<td style=\"width: 152px;\">\u00da<\/td>\n<td style=\"width: 173px;\">&amp;#218;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">219<\/td>\n<td style=\"width: 152px;\">\u00db<\/td>\n<td style=\"width: 173px;\">&amp;#219;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">220<\/td>\n<td style=\"width: 152px;\">\u00dc<\/td>\n<td style=\"width: 173px;\">&amp;#220;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">221<\/td>\n<td style=\"width: 152px;\">\u00dd<\/td>\n<td style=\"width: 173px;\">&amp;#221;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">222<\/td>\n<td style=\"width: 152px;\">\u00de<\/td>\n<td style=\"width: 173px;\">&amp;#222;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">223<\/td>\n<td style=\"width: 152px;\">\u00df<\/td>\n<td style=\"width: 173px;\">&amp;#223;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">224<\/td>\n<td style=\"width: 152px;\">\u00e0<\/td>\n<td style=\"width: 173px;\">&amp;#224;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">225<\/td>\n<td style=\"width: 152px;\">\u00e1<\/td>\n<td style=\"width: 173px;\">&amp;#225;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">226<\/td>\n<td style=\"width: 152px;\">\u00e2<\/td>\n<td style=\"width: 173px;\">&amp;#226;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">227<\/td>\n<td style=\"width: 152px;\">\u00e3<\/td>\n<td style=\"width: 173px;\">&amp;#227;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">228<\/td>\n<td style=\"width: 152px;\">\u00e4<\/td>\n<td style=\"width: 173px;\">&amp;#228;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">229<\/td>\n<td style=\"width: 152px;\">\u00e5<\/td>\n<td style=\"width: 173px;\">&amp;#229;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">230<\/td>\n<td style=\"width: 152px;\">\u00e6<\/td>\n<td style=\"width: 173px;\">&amp;#230;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">231<\/td>\n<td style=\"width: 152px;\">\u00e7<\/td>\n<td style=\"width: 173px;\">&amp;#231;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">232<\/td>\n<td style=\"width: 152px;\">\u00e8<\/td>\n<td style=\"width: 173px;\">&amp;#232;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">233<\/td>\n<td style=\"width: 152px;\">\u00e9<\/td>\n<td style=\"width: 173px;\">&amp;#233;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">234<\/td>\n<td style=\"width: 152px;\">\u00ea<\/td>\n<td style=\"width: 173px;\">&amp;#234;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">235<\/td>\n<td style=\"width: 152px;\">\u00eb<\/td>\n<td style=\"width: 173px;\">&amp;#235;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">236<\/td>\n<td style=\"width: 152px;\">\u00ec<\/td>\n<td style=\"width: 173px;\">&amp;#236;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">237<\/td>\n<td style=\"width: 152px;\">\u00ed<\/td>\n<td style=\"width: 173px;\">&amp;#237;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">238<\/td>\n<td style=\"width: 152px;\">\u00ee<\/td>\n<td style=\"width: 173px;\">&amp;#238;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">239<\/td>\n<td style=\"width: 152px;\">\u00ef<\/td>\n<td style=\"width: 173px;\">&amp;#239;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">240<\/td>\n<td style=\"width: 152px;\">\u00f0<\/td>\n<td style=\"width: 173px;\">&amp;#240;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">241<\/td>\n<td style=\"width: 152px;\">\u00f1<\/td>\n<td style=\"width: 173px;\">&amp;#241;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">242<\/td>\n<td style=\"width: 152px;\">\u00f2<\/td>\n<td style=\"width: 173px;\">&amp;#242;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">243<\/td>\n<td style=\"width: 152px;\">\u00f3<\/td>\n<td style=\"width: 173px;\">&amp;#243;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">244<\/td>\n<td style=\"width: 152px;\">\u00f4<\/td>\n<td style=\"width: 173px;\">&amp;#244;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">245<\/td>\n<td style=\"width: 152px;\">\u00f5<\/td>\n<td style=\"width: 173px;\">&amp;#245;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">246<\/td>\n<td style=\"width: 152px;\">\u00f6<\/td>\n<td style=\"width: 173px;\">&amp;#246;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">247<\/td>\n<td style=\"width: 152px;\">\u00f7<\/td>\n<td style=\"width: 173px;\">&amp;#247;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">248<\/td>\n<td style=\"width: 152px;\">\u00f8<\/td>\n<td style=\"width: 173px;\">&amp;#248;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">249<\/td>\n<td style=\"width: 152px;\">\u00f9<\/td>\n<td style=\"width: 173px;\">&amp;#249;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">250<\/td>\n<td style=\"width: 152px;\">\u00fa<\/td>\n<td style=\"width: 173px;\">&amp;#250;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">251<\/td>\n<td style=\"width: 152px;\">\u00fb<\/td>\n<td style=\"width: 173px;\">&amp;#251;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">252<\/td>\n<td style=\"width: 152px;\">\u00fc<\/td>\n<td style=\"width: 173px;\">&amp;#252;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">253<\/td>\n<td style=\"width: 152px;\">\u00fd<\/td>\n<td style=\"width: 173px;\">&amp;#253;<\/td>\n<\/tr>\n<tr>\n<td style=\"width: 203px;\">254<\/td>\n<td style=\"width: 152px;\">\u00fe<\/td>\n<td style=\"width: 173px;\">&amp;#254;<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>&nbsp; Ci sono diversi caratteri che in un file xml non sono ammessi. Spesso questi caratteri speciali, come ad esempio i simboli delle valute (\u20ac, $, etc.) o la famosa [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1729,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[31],"tags":[],"class_list":["post-1714","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-guide"],"jetpack_featured_media_url":"https:\/\/www.imprenditoriamo.it\/site\/wp-content\/uploads\/2019\/12\/XML-caratteri-non-ammessi-header-foto.jpg","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/pbna4K-rE","_links":{"self":[{"href":"https:\/\/www.imprenditoriamo.it\/site\/wp-json\/wp\/v2\/posts\/1714","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.imprenditoriamo.it\/site\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.imprenditoriamo.it\/site\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.imprenditoriamo.it\/site\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.imprenditoriamo.it\/site\/wp-json\/wp\/v2\/comments?post=1714"}],"version-history":[{"count":15,"href":"https:\/\/www.imprenditoriamo.it\/site\/wp-json\/wp\/v2\/posts\/1714\/revisions"}],"predecessor-version":[{"id":1720,"href":"https:\/\/www.imprenditoriamo.it\/site\/wp-json\/wp\/v2\/posts\/1714\/revisions\/1720"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.imprenditoriamo.it\/site\/wp-json\/wp\/v2\/media\/1729"}],"wp:attachment":[{"href":"https:\/\/www.imprenditoriamo.it\/site\/wp-json\/wp\/v2\/media?parent=1714"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.imprenditoriamo.it\/site\/wp-json\/wp\/v2\/categories?post=1714"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.imprenditoriamo.it\/site\/wp-json\/wp\/v2\/tags?post=1714"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}