<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.multitheftauto.com/wiki/IT/xmlCreateFile?action=history&amp;feed=atom</id>
	<title>IT/xmlCreateFile - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.multitheftauto.com/wiki/IT/xmlCreateFile?action=history&amp;feed=atom"/>
	<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IT/xmlCreateFile&amp;action=history"/>
	<updated>2026-05-02T22:40:28Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.3</generator>
	<entry>
		<id>https://wiki.multitheftauto.com/index.php?title=IT/xmlCreateFile&amp;diff=17433&amp;oldid=prev</id>
		<title>Shadd: New page: {{IT/MainP}} {{IT/Funzioni server client}} Questa funzione crea un nuovo documento XML, che potrà poi essere salvato su file tramite xmlSaveFile. Questa funzione sovras...</title>
		<link rel="alternate" type="text/html" href="https://wiki.multitheftauto.com/index.php?title=IT/xmlCreateFile&amp;diff=17433&amp;oldid=prev"/>
		<updated>2008-06-14T18:52:27Z</updated>

		<summary type="html">&lt;p&gt;New page: {{IT/MainP}} {{IT/Funzioni server client}} Questa funzione crea un nuovo documento XML, che potrà poi essere salvato su file tramite &lt;a href=&quot;/index.php?title=IT/xmlSaveFile&amp;amp;action=edit&amp;amp;redlink=1&quot; class=&quot;new&quot; title=&quot;IT/xmlSaveFile (page does not exist)&quot;&gt;xmlSaveFile&lt;/a&gt;. Questa funzione sovras...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{IT/MainP}}&lt;br /&gt;
{{IT/Funzioni server client}}&lt;br /&gt;
Questa funzione crea un nuovo documento XML, che potrà poi essere salvato su file tramite [[IT/xmlSaveFile|xmlSaveFile]]. Questa funzione sovrascriverà il file precedente se esso esiste già.&lt;br /&gt;
&lt;br /&gt;
==Sintassi== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
xmlnode xmlCreateFile ( string filename, string rootNodeName, [ resource inResource = getThisResource() ] )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argomenti richiesti=== &lt;br /&gt;
*'''filename:''' il nome del documento XML che vuoi creare.&lt;br /&gt;
*'''rootNodeName:''' il nome del [[IT/Xmlnode|nodo]] root del docoumento XML.&lt;br /&gt;
&lt;br /&gt;
===Argomenti opzionali===&lt;br /&gt;
{{IT/Argomenti opzionali}}&lt;br /&gt;
*'''inResource:''' la [[IT/Risorsa|risorsa]] la cui directory verrà usata come root per il nuovo file. Notare che se viene specificata una risorsa esterna, quella che chiama la funzione deve avere accesso alla proprietà general.ModifyOtherObjects nell'[[IT/ACL|ACL]].&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;section name=&amp;quot;Client&amp;quot; class=&amp;quot;client&amp;quot; show=&amp;quot;true&amp;quot;&amp;gt;&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
xmlnode xmlCreateFile ( string filename, string rootNodeName )&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt; &lt;br /&gt;
&lt;br /&gt;
===Argomenti richiesti=== &lt;br /&gt;
*'''filename:''' il nome del documento XML che vuoi creare.&lt;br /&gt;
*'''rootNodeName:''' il nome del [[IT/Xmlnode|nodo]] root del docoumento XML.&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Valori restituiti===&lt;br /&gt;
Ritorna il [[IT/Xmlnode|nodo root]] del file XML se è stato creato con successo, ''false'' altrimenti.&lt;br /&gt;
&lt;br /&gt;
==Esempio== &lt;br /&gt;
&amp;lt;section name=&amp;quot;Client &amp;amp; server&amp;quot; class=&amp;quot;server&amp;quot; show=&amp;quot;false&amp;quot;&amp;gt;&lt;br /&gt;
Questo esempio crea un documento XML di nome ''docuProva.xml'', la cui root è chiamata ''rootprova'' e lo salva nella variabile ''docuXML''.&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;lua&amp;quot;&amp;gt;&lt;br /&gt;
docuXML = xmlCreateFile(&amp;quot;docuProva.xml&amp;quot;, &amp;quot;rootprova&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&amp;lt;/section&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Vedi anche==&lt;br /&gt;
{{IT/XML_functions}}&lt;/div&gt;</summary>
		<author><name>Shadd</name></author>
	</entry>
</feed>