Create a new XML Namespace
ns = xmlNs(elem, prefix, href)
a mlist typed XMLElem
a string giving the prefix for this namespace or the empty matrix to have an empty prefix
a string giving the href for this namespace
Create a new XML namespace associated with a XML element. The created namespace can be used in the element or in its children.
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); | ![]() | ![]() |
Version | Description |
5.4.0 | XML module introduced. |