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

Function xmlSchemaGetNodeContent

ThirdParty/libxml2/vtklibxml2/xmlschemas.c:4675–4689  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4673}
4674
4675static const xmlChar *
4676xmlSchemaGetNodeContent(xmlSchemaParserCtxtPtr ctxt, xmlNodePtr node)
4677{
4678 xmlChar *val;
4679 const xmlChar *ret;
4680
4681 val = xmlNodeGetContent(node);
4682 if (val == NULL)
4683 val = xmlStrdup((xmlChar *)"");
4684 ret = xmlDictLookup(ctxt->dict, val, -1);
4685 xmlFree(val);
4686 if (ret == NULL)
4687 xmlSchemaPErrMemory(ctxt);
4688 return(ret);
4689}
4690
4691static const xmlChar *
4692xmlSchemaGetNodeContentNoDict(xmlNodePtr node)

Callers 12

xmlGetMaxOccursFunction · 0.85
xmlGetMinOccursFunction · 0.85
xmlSchemaPValAttrNodeFunction · 0.85
xmlSchemaParseWildcardNsFunction · 0.85
xmlSchemaParseElementFunction · 0.85
xmlSchemaParseUnionFunction · 0.85

Calls 4

xmlNodeGetContentFunction · 0.85
xmlStrdupFunction · 0.85
xmlDictLookupFunction · 0.85
xmlSchemaPErrMemoryFunction · 0.85

Tested by

no test coverage detected