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 - Русский

Please note that the recommended version of Scilab is 6.0.1. 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モジュールが導入されました.
Scilab Enterprises
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