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="xmlDocument" xml:lang="ja">
15
<refname>xmlDocument</refname>
16
<refpurpose>XML文書を新規に作成</refpurpose>
21
doc = xmlDocument([uri, [, version]])
30
<para>文書のuriを指定する文字列</para>
36
<para>文書のXMLバージョンを指定する文字列</para>
42
<para>XMLDoc型のmlist</para>
49
<para>XML文書を新規に作成します.</para>
53
<programlisting role="example"><![CDATA[
54
doc = xmlDocument("TMPDIR/foo.xml");
55
root = xmlElement(doc, "root");
56
root.attributes.attr = "value";
58
root.children(1) = "<a>hello</a>";
59
root.children(2) = xmlElement(doc, "b");
60
root.children(2).attributes.id = "123";
61
root.children(2).content = " world";
69
<refsection role="see also">
71
<simplelist type="inline">
73
<link linkend="XMLObjects">XML Objects</link>
76
<link linkend="xmlElement">xmlElement</link>
84
<revnumber>5.4.0</revnumber>
85
<revremark>XMLモジュールが導入されました.</revremark>