Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.4.0 - 日本語

Change language to:
English - Français - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab help >> XML Management > xmlDocument

xmlDocument

XML文書を新規に作成

呼び出し手順

doc = xmlDocument([uri, [, version]])

引数

uri

文書のuriを指定する文字列

version

文書のXMLバージョンを指定する文字列

doc

XMLDoc型のmlist

説明

XML文書を新規に作成します.

doc = xmlDocument("TMPDIR/foo.xml");
root = xmlElement(doc, "root");
root.attributes.attr = "value";

root.children(1) = "<a>hello</a>";
root.children(2) = xmlElement(doc, "b");
root.children(2).attributes.id = "123";
root.children(2).content = " world";

doc.root = root;
xmlDump(doc)

xmlDelete(doc);

参照

  • XML Objects — 異なるのXMLオブジェクトのプロパティを記述する
  • xmlElement — XML要素を新規に作成する

履歴

VersionDescription
5.4.0 XMLモジュールが導入されました.
Report an issue
<< xmlDelete XML Management xmlDump >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Oct 01 17:40:33 CEST 2012