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


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要素を新規に作成する

履歴

バージョン記述
5.4.0 XMLモジュールが導入されました.
Report an issue
<< xmlDelete XML Management xmlDTD >>

Copyright (c) 2022-2023 (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:
Tue Mar 07 09:28:48 CET 2023