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

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 > xmlNs

xmlNs

XML名前空間を新規に作成する

呼び出し手順

ns = xmlNs(elem, prefix, href)

引数

elem

XMLElem型のmlist

prefix

この名前空間の接頭辞を指定する文字列

href

この名前空間のhrefを指定する文字列

説明

あるXML要素に関連するXML名前空間を新たに作成します. 作成された名前空間はその要素またはその子要素で使用できます.

doc = xmlDocument("TMPDIR/foo.xml");
doc.root = xmlElement(doc, "root");
ns = xmlNs(doc.root, "scilab", "http://www.scilab.org");
doc.root.children(1) = "<a>hello</a>";
doc.root.children(1).namespace = ns;
xmlDump(doc)
xmlDelete(doc);

参照

履歴

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

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:
Wed Apr 01 10:25:03 CEST 2015