MCPcopy Create free account
hub / github.com/Kitware/VTK / xmlSetNs

Function xmlSetNs

ThirdParty/libxml2/vtklibxml2/tree.c:785–793  ·  view source on GitHub ↗

* xmlSetNs: * @node: a node in the document * @ns: a namespace pointer (optional) * * Set the namespace of an element or attribute node. Passing a NULL * namespace unsets the namespace. */

Source from the content-addressed store, hash-verified

783 * namespace unsets the namespace.
784 */
785void
786xmlSetNs(xmlNodePtr node, xmlNsPtr ns) {
787 if (node == NULL) {
788 return;
789 }
790 if ((node->type == XML_ELEMENT_NODE) ||
791 (node->type == XML_ATTRIBUTE_NODE))
792 node->ns = ns;
793}
794
795/**
796 * xmlFreeNs:

Callers 1

xmlSAX2StartElementFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected