xmlNsCreate a new XML NamespaceCalling Sequence
ns = xmlNs(elem, prefix, href)
Argumentselema mlist typed XMLElemprefixa string giving the prefix for this namespace or the empty matrix to have an empty prefixhrefa string giving the href for this namespaceDescriptionCreate a new XML namespace associated with a XML element. The created namespace can be used in the element or in its children.Exampleshello";
doc.root.children(1).namespace = ns;
xmlDump(doc)
xmlDelete(doc);
]]>See Also
XML Objects
xmlDocument
xmlElement
xmlAddNs
xmlGetNsByHref
xmlGetNsByPrefix
History5.4.0XML module introduced.