Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.5.1 - Português

Change language to:
English - Français - 日本語 - Русский

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

Ajuda do Scilab >> XML Management > xmlNs

xmlNs

Create a new XML Namespace

Calling Sequence

ns = xmlNs(elem, prefix, href)

Arguments

elem

a mlist typed XMLElem

prefix

a string giving the prefix for this namespace or the empty matrix to have an empty prefix

href

a string giving the href for this namespace

Description

Create a new XML namespace associated with a XML element. The created namespace can be used in the element or in its children.

Examples

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);

See Also

History

VersãoDescrição
5.4.0 XML module introduced.
Report an issue
<< xmlName XML Management xmlRead >>

Copyright (c) 2022-2024 (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:
Thu Oct 02 13:57:41 CEST 2014