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

Function xmlNewProp

ThirdParty/libxml2/vtklibxml2/tree.c:1778–1786  ·  view source on GitHub ↗

* xmlNewProp: * @node: the parent node (optional) * @name: the name of the attribute * @value: the value of the attribute (optional) * * Create an attribute node. * * 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 if @node is not an * element. * * Returns

Source from the content-addressed store, hash-verified

1776 * or a memory allocation failed.
1777 */
1778xmlAttrPtr
1779xmlNewProp(xmlNodePtr node, const xmlChar *name, const xmlChar *value) {
1780
1781 if (name == NULL) {
1782 return(NULL);
1783 }
1784
1785 return xmlNewPropInternal(node, NULL, name, value, 0);
1786}
1787#endif /* LIBXML_TREE_ENABLED */
1788
1789/**

Callers 4

openFileMethod · 0.85
visitMethod · 0.85
htmlSetMetaEncodingFunction · 0.85

Calls 1

xmlNewPropInternalFunction · 0.85

Tested by

no test coverage detected