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

Function xmlNewNsProp

ThirdParty/libxml2/vtklibxml2/tree.c:1807–1816  ·  view source on GitHub ↗

* 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

Source from the content-addressed store, hash-verified

1805 * or a memory allocation failed.
1806 */
1807xmlAttrPtr
1808xmlNewNsProp(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:

Callers 3

xmlC14NFixupBaseAttrFunction · 0.85

Calls 1

xmlNewPropInternalFunction · 0.85

Tested by

no test coverage detected