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

Function xmlSchemaGetProp

ThirdParty/libxml2/vtklibxml2/xmlschemas.c:4707–4720  ·  view source on GitHub ↗

* xmlSchemaGetProp: * @ctxt: the parser context * @node: the node * @name: the property name * * Read a attribute value and internalize the string * * Returns the string or NULL if not present. */

Source from the content-addressed store, hash-verified

4705 * Returns the string or NULL if not present.
4706 */
4707static const xmlChar *
4708xmlSchemaGetProp(xmlSchemaParserCtxtPtr ctxt, xmlNodePtr node,
4709 const char *name)
4710{
4711 xmlChar *val;
4712 const xmlChar *ret;
4713
4714 val = xmlGetNoNsProp(node, BAD_CAST name);
4715 if (val == NULL)
4716 return(NULL);
4717 ret = xmlDictLookup(ctxt->dict, val, -1);
4718 xmlFree(val);
4719 return(ret);
4720}
4721
4722/************************************************************************
4723 * *

Callers 8

xmlGetBooleanPropFunction · 0.85
xmlSchemaParseFacetFunction · 0.85
xmlSchemaParseWildcardNsFunction · 0.85
xmlSchemaParseNotationFunction · 0.85
xmlSchemaParseElementFunction · 0.85
xmlSchemaParseSimpleTypeFunction · 0.85
xmlSchemaAddSchemaDocFunction · 0.85

Calls 2

xmlGetNoNsPropFunction · 0.85
xmlDictLookupFunction · 0.85

Tested by

no test coverage detected