* xmlNewNsProp: * @node: the parent node (optional) * @ns: the namespace (optional) * @name: the local name of the attribute * @value: the value of the attribute (optional) * * Create an attribute object. * * If provided, @value should be a raw, unescaped string. * * If @node is provided, the created attribute will be appended without * checking for duplicate names. It is an error i
| 1805 | * or a memory allocation failed. |
| 1806 | */ |
| 1807 | xmlAttrPtr |
| 1808 | xmlNewNsProp(xmlNodePtr node, xmlNsPtr ns, const xmlChar *name, |
| 1809 | const xmlChar *value) { |
| 1810 | |
| 1811 | if (name == NULL) { |
| 1812 | return(NULL); |
| 1813 | } |
| 1814 | |
| 1815 | return xmlNewPropInternal(node, ns, name, value, 0); |
| 1816 | } |
| 1817 | |
| 1818 | /** |
| 1819 | * xmlNewNsPropEatName: |
no test coverage detected