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

Function xmlSchemaNewNOTATIONValue

ThirdParty/libxml2/vtklibxml2/xmlschemastypes.c:1183–1197  ·  view source on GitHub ↗

* xmlSchemaNewNOTATIONValue: * @name: the notation name * @ns: the notation namespace name or NULL * * Allocate a new NOTATION value. * The given values are consumed and freed with the struct. * * Returns a pointer to the new value or NULL in case of error */

Source from the content-addressed store, hash-verified

1181 * Returns a pointer to the new value or NULL in case of error
1182 */
1183xmlSchemaValPtr
1184xmlSchemaNewNOTATIONValue(const xmlChar *name,
1185 const xmlChar *ns)
1186{
1187 xmlSchemaValPtr val;
1188
1189 val = xmlSchemaNewValue(XML_SCHEMAS_NOTATION);
1190 if (val == NULL)
1191 return (NULL);
1192
1193 val->value.qname.name = (xmlChar *)name;
1194 if (ns != NULL)
1195 val->value.qname.uri = (xmlChar *)ns;
1196 return(val);
1197}
1198
1199/**
1200 * xmlSchemaNewQNameValue:

Callers 1

Calls 1

xmlSchemaNewValueFunction · 0.85

Tested by

no test coverage detected