Changes

Jump to navigation Jump to search
3 bytes removed ,  17:28, 8 November 2016
→‎Functions: Start writexml() doc
Line 390: Line 390:     
=== writexml() ===
 
=== writexml() ===
Writes a property tree as returned by readxml() to a file. Children  
+
{{Nasal doc
with name starting with <prefix> are again turned into attributes of   
+
|syntax = io.basename(path, node[, indent[, prefix]]);
their parent. <node> must contain exactly one child, which will      
+
|text = Writes a property tree as returned by readxml() to a file. Children with name starting with <prefix> are again turned into attributes of   
become the XML file's outermost element.                            
+
their parent. <node> must contain exactly one child, which will become the XML file's outermost element.
<syntaxhighlight lang="nasal">
+
|param1 = path
Usage:  io.writexml(path, node[,indent = "\t"][, prefix = "___"]);
+
|param1text = Path to the file as a string.
</syntaxhighlight>
+
|param2 = node
<syntaxhighlight lang="nasal">
+
|param2text =
io.writexml(path, node, indent,prefix);
+
|param3 = indent
</syntaxhighlight>
+
|param3text =
 +
|param4 = prefix
 +
|param4text =  
 +
|example1 =  
 +
}}
    
== Variables ==
 
== Variables ==

Navigation menu