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 > 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モジュールが導入されました.
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