diff options
Diffstat (limited to 'files/it/il_modulo_xml_extras')
-rw-r--r-- | files/it/il_modulo_xml_extras/index.html | 116 |
1 files changed, 116 insertions, 0 deletions
diff --git a/files/it/il_modulo_xml_extras/index.html b/files/it/il_modulo_xml_extras/index.html new file mode 100644 index 0000000000..3a36298935 --- /dev/null +++ b/files/it/il_modulo_xml_extras/index.html @@ -0,0 +1,116 @@ +--- +title: Il modulo XML Extras +slug: Il_modulo_XML_Extras +tags: + - Tutte_le_categorie + - XML +translation_of: Mozilla/Tech/XML_Extras +--- +<p> </p> +<p>Il modulo XML Extras contiene diverse funzionalità che permettono agli sviluppatori di trattare un documento XML come un insieme di dati e non semplicemente come un documento di qualsiasi altro tipo. Il modulo è strutturato come componente incorporato e rende disponibili le sue caratteristiche sia tramite <a href="it/JavaScript">JavaScript</a>, sia tramite C++/<a href="it/XPCOM">XPCOM</a>. Il modulo è compilato per default su tutte le piattaforme ed è incluso ance dagli installer, in modo che sia disponibile anche con le nightly builds.</p> +<h3 id="Stato_delle_funzionalit.C3.A0" name="Stato_delle_funzionalit.C3.A0">Stato delle funzionalità</h3> +<table class="standard-table"> + <tbody> + <tr> + <td class="header">Funzionalità</td> + <td class="header">Stato</td> + </tr> + <tr> + <td><a href="it/XMLSerializer">XMLSerializer</a></td> + <td>Disponibile</td> + </tr> + <tr> + <td><a href="it/XMLHttpRequest">XMLHttpRequest</a></td> + <td>Disponibile</td> + </tr> + <tr> + <td><a href="it/DOMParser">DOMParser</a> (string and stream input source)</td> + <td>Disponibile</td> + </tr> + <tr> + <td>Web Services con <a href="it/SOAP_nei_browser_basati_su_Gecko">SOAP</a> e <a href="it/Accessing_Web_Services_in_Mozilla_Using_WSDL_Proxying">WSDL</a></td> + <td>Disponibile a partire da 1.4alpha. Spostato nel modulo Web Services a partire da 1.4beta.</td> + </tr> + <tr> + <td>XML Persistence</td> + <td> </td> + </tr> + <tr> + <td>FIXptr e XPointer</td> + <td>Disponibile da 1.4alpha nel cuore di Mozilla. Spostato nel modulo XMLExtras a partire da 1.4beta.</td> + </tr> + </tbody> +</table> +<p>Vedere anche:</p> +<ul> + <li>{{ Source("extensions/xml-rpc/", "XML-RPC") }}</li> + <li><a href="it/XML_in_Mozilla">XML in Mozilla</a></li> + <li><a href="it/XML_in_Mozilla#DOM_Load_and_Save_Methods">document.load()</a></li> + <li><a class="external" href="http://kb.mozillazine.org/Category:XML_in_JavaScript">A few examples dealing with XML</a> from MozillaZine Knowledge Base.</li> +</ul> +<h3 id="QA_and_Testing" name="QA_and_Testing">QA and Testing</h3> +<p>There are some <a class="external" href="http://www.mozilla.org/xmlextras/tests.html">online tests</a> for mainly exercising the HTTP GET method via <a href="it/XMLHttpRequest">XMLHttpRequest</a>.</p> +<p>Other test cases for each of the implemented components listed above exist in {{ Source("extensions/xmlextras/tests/") }}. More exhaustive test suites need to be created, however. If you'd like to help out with QA, you can do one of the following:</p> +<ul> + <li>Sign up as the QA owner for any of the implemented components. The QA owner will manage the tests associated with their component, act as QA contact for related bugs and help with regression testing.</li> + <li>Contribute a test suite or individual tests that use the implemented components. File bugs for new test you have, and/or check them into {{ Source("extensions/xmlextras/tests/") }}.</li> + <li>File bugs against the implemented components. Bugs should be filed against the XML component in the Browser product.</li> +</ul> +<h3 id="Documentation" name="Documentation">Documentation</h3> +<p>Probably the best way to learn how to use these technologies is through examples. There are some in {{ Source("extensions/xmlextras/tests/") }}. If you follow that link to look at the examples you will need to look at page source for the HTML documents.</p> +<p>For <a href="it/XMLHttpRequest">XMLHttpRequest</a> object you can mostly rely on the <a class="external" href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/xmlsdk/html/63409298-0516-437d-b5af-68368157eae3.asp">Microsoft XMLHttpRequest documentation</a>, with some caveats: all functions and property names begin with a lower case letter and the object creation is different. Some properties are not implemented.</p> +<p>Thad Hoffman has written a document that shows how you can mimic <a href="it/Using_XML_Data_Islands_in_Mozilla">XML Data Islands in Mozilla</a>. Edmond Woychowsky has also written articles on XML Data Islands in Mozilla: "<a class="external" href="http://builder.com.com/article.jhtml?id=u00220030515woy01.htm">Make XML data islands work in Mozilla</a>", "<a class="external" href="http://builder.com.com/5100-6371-5085227.html">Build cross-browser XML paging code</a>" and "<a class="external" href="http://builder.com.com/article.jhtml?id=u00320030718woy01.htm">Implement a flexible shopping cart with XML and ASP</a>". The Mozilla Developer Center has several pages for <a href="it/XMLHttpRequest">XMLHttpRequest</a>.</p> +<p>Below are some key differencies in "XML Extras" between Mozilla and Microsoft software:</p> +<table class="standard-table"> + <tbody> + <tr> + <td class="header">Difference</td> + <td class="header">Microsoft</td> + <td class="header">Mozilla</td> + </tr> + <tr> + <td>Member names</td> + <td>Case insensitive?</td> + <td>Begins with lower case letter</td> + </tr> + <tr> + <td><a href="it/XMLHttpRequest">XMLHttpRequest</a> Creation</td> + <td><code>new ActiveXObject("Msxml2.XMLHTTP")</code></td> + <td><code>new XMLHttpRequest()</code></td> + </tr> + <tr> + <td><code>XMLHttpRequest.send("some string")</code></td> + <td>ok</td> + <td>ok starting with milestone 0.9.7 (actually nightly 2001-11-28). With older builds, passing strings to send() works only in chrome, see {{ Source("extensions/xmlextras/tests/post.html", "post.html") }} sample. The "workaround" is to use DOMParser object's <code>parseFromString()</code> method to create a document from string, and pass the temporary document into <code>send()</code>.</td> + </tr> + <tr> + <td><code>XMLHttpRequest.open("aHost")</code></td> + <td>ok</td> + <td><tt><a class="external" rel="freelink">file://</a></tt> documents can access <tt><a class="external" href="http://" rel="freelink">http://</a></tt> documents but you need to enable <code>UniversalBrowserRead</code> privilege in your scripts - see the <a class="external" href="http://www.mozilla.org/projects/security/components/signed-scripts.html#privs">JavaScript Security: Signed Scripts</a> document for more details. Normally your files should reside on a webserver so this shouldn't pose a problem (there you do not need that line either). Additionally, "foo.com:80" and "foo.com:313" are considered different hosts for security purposes. You cannot open a connection to a different host.</td> + </tr> + <tr> + <td><a href="it/DOMParser">DOMParser</a> Creation</td> + <td>not available</td> + <td><code>new DOMParser()</code></td> + </tr> + <tr> + <td><a href="it/XMLSerializer">XMLSerializer</a> Creation</td> + <td>not available</td> + <td><code>new XMLSerializer()</code></td> + </tr> + </tbody> +</table> +<p>Minimal documentation for the components listed above can be found using Mozilla documentation generated by <a class="external" href="http://www.doxygen.org/">Doxygen</a>. File new bugs for additional documentation contributions, either specifically aimed at JavaScript developers or to complete & clarify the JavaDoc-style comments in the IDL files.</p> +<ul> + <li>nsIDOMSerializer (Currently, the JavaScript constructor is <code>XMLSerializer()</code>)</li> + <li>nsIDOMParser (Currently, the JavaScript constructor is <code>DOMParser()</code>)</li> + <li>nsIXMLHttpRequest</li> +</ul> +<p>Please see the <a href="it/XML_in_Mozilla#XML_Linking_and_Pointing">XML Linking and Pointing</a> section in <a href="it/XML_in_Mozilla">XML in Mozilla</a> document for FIXptr and XPointer documentation.</p> +<h3 id="How_can_I_help.3F" name="How_can_I_help.3F">How can I help?</h3> +<ul> + <li>Help with <a href="it/XML_in_Mozilla#Testing_and_QA">testing</a> the components contained within the module.</li> + <li>Contribute {{ Anch("Documentation") }} to the module.</li> + <li>Help at the code level, contributing code patches for bug fixes or feature completion.</li> +</ul> +<p>{{ languages( { "fr": "fr/XML_Extras" } ) }}</p> |