Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Français - Português - Русский -
Scilabヘルプ >> 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要素を新規に作成する

履歴

バージョン記述
5.4.0 XMLモジュールが導入されました.
Scilab Enterprises
Copyright (c) 2011-2015 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Wed Jun 15 08:35:28 CEST 2016