Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Português - Русский - 日本語
Aide de Scilab >> Gestion des fichiers XML > xmlAddNs

xmlAddNs

Add a namespace to a XML Element

Syntax

xmlAddNs(elem, [, ns1 [, ns2, ...]])

Arguments

elem

a mlist typed XMLElem

nsi

a mlist typed XMLNs

Description

Add one or more namespaces to an element

Examples

doc = xmlDocument("TMPDIR/foo.xml");
doc.root = xmlElement(doc, "root");
a = xmlElement(doc, "a");
b = xmlElement(doc, "b");
ns_scilab = xmlNs(a, "scilab", "http://www.scilab.org");
ns_balics = xmlNs(a, "balics", "http://gro.balics.www");
xmlAddNs(b, ns_scilab, ns_balics);

doc.root.children(1) = a;
doc.root.children(2) = b;
xmlDump(doc)

xmlDelete(doc);

See Also

History

VersionDescription
5.4.0 XML module introduced.
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:31:06 CEST 2016