13
13
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="xmlFormat" xml:lang="en">
15
<refname>xmlFormat</refname>
16
<refpurpose>Format a Scilab variable into XML</refpurpose>
19
<title>Calling Sequence</title>
21
xmlCode = xmlFormat(scilabVar)
25
<title>Arguments</title>
28
<term>scilabVar</term>
30
<para>scilabVar, a Scilab's variable</para>
36
<para>xmlCode, a string containing XML code</para>
42
<title>Description</title>
43
<para>This function does nothing by itself ! It needs to be overloaded to be useful.</para>
44
<para>It is used when a Scilab variable is inserted in the XML tree.</para>
47
<title>Examples</title>
48
<programlisting role="example"><![CDATA[
15
<refname>xmlFormat</refname>
16
<refpurpose>Format a Scilab variable into XML</refpurpose>
19
<title>Calling Sequence</title>
21
xmlCode = xmlFormat(scilabVar)
25
<title>Arguments</title>
28
<term>scilabVar</term>
30
<para>scilabVar, a Scilab's variable</para>
36
<para>xmlCode, a string containing XML code</para>
42
<title>Description</title>
43
<para>This function does nothing by itself ! It needs to be overloaded to be useful.</para>
44
<para>It is used when a Scilab variable is inserted in the XML tree.</para>
47
<title>Examples</title>
48
<programlisting role="example"><![CDATA[
49
49
doc = xmlReadStr("<root><a att=""foo"" rib=""bar""><b>Hello</b></a></root>");
50
50
// This code will fail:
51
51
// doc.root.children(1.5) = 1.23456;