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

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

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

Scilabヘルプ >> XML Management > xmlElement

xmlElement

XML要素を新規に作成する

呼び出し手順

e = xmlElement(doc, name)

引数

doc

XMLDoc型のmlist

name

要素名を指定する文字列

e

XMLElem型のmlist

説明

指定した名前を有するXML要素を新たに作成します.

Examples

doc = xmlReadStr("<root><a>Hello</a><b> world</b></root>");
e = xmlElement(doc, "c");
e.attributes.attr = "value";
e.content = "!";
doc.root.children(3) = e;
xmlDump(doc)
xmlDelete(doc);

参照

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

履歴

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

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 Feb 25 08:53:22 CET 2020