1
<?xml version="1.0" encoding="UTF-8"?>
3
* Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4
* Copyright (C) 2012 - Scilab Enterprises - Calixte DENIZET
6
* This file must be used under the terms of the CeCILL.
7
* This source file is licensed as described in the file COPYING, which
8
* you should have received as part of this distribution. The terms
9
* are also available at
10
* http://www.cecill.info/licences/Licence_CeCILL_V2-en.txt
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="ja">
15
<refname>xmlFormat</refname>
16
<refpurpose>Scilab変数をXMLに整形する</refpurpose>
21
xmlCode = xmlFormat(scilabVar)
28
<term>scilabVar</term>
30
<para>scilabVar, Scilab変数</para>
36
<para>xmlCode, XMLコードを含む文字列</para>
44
この関数は単独ではなにもしません! 有用なことを行うにはオーバーロードされる
48
Scilab変数をXMLツリーに変換する際に使用されます.
53
<programlisting role="example"><![CDATA[
54
doc = xmlReadStr("<root><a att=""foo"" rib=""bar""><b>Hello</b></a></root>");
56
// doc.root.children(1.5) = 1.23456;
58
// ここで, double型を処理するために %s_xmlFormat を定義します
59
// この例ではdouble行列は処理されないことに注意してください
60
function y=%s_xmlFormat(x), y="<number>" + string(x) + "</number>", endfunction;
63
doc.root.children(1.5) = 1.23456;
73
<revnumber>5.4.0</revnumber>
74
<revremark>XMLモジュールが導入されました.</revremark>