* 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 */
| 1181 | * Returns a pointer to the new value or NULL in case of error |
| 1182 | */ |
| 1183 | xmlSchemaValPtr |
| 1184 | xmlSchemaNewNOTATIONValue(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: |
no test coverage detected