* 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. */
| 783 | * namespace unsets the namespace. |
| 784 | */ |
| 785 | void |
| 786 | xmlSetNs(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: |
no outgoing calls
no test coverage detected