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

Function xmlSchemaGetPropNode

ThirdParty/libxml2/vtklibxml2/xmlschemas.c:4630–4644  ·  view source on GitHub ↗

* xmlSchemaGetPropNode: * @node: the element node * @name: the name of the attribute * * Seeks an attribute with a name of @name in * no namespace. * * Returns the attribute or NULL if not present. */

Source from the content-addressed store, hash-verified

4628 * Returns the attribute or NULL if not present.
4629 */
4630static xmlAttrPtr
4631xmlSchemaGetPropNode(xmlNodePtr node, const char *name)
4632{
4633 xmlAttrPtr prop;
4634
4635 if ((node == NULL) || (name == NULL))
4636 return(NULL);
4637 prop = node->properties;
4638 while (prop != NULL) {
4639 if ((prop->ns == NULL) && xmlStrEqual(prop->name, BAD_CAST name))
4640 return(prop);
4641 prop = prop->next;
4642 }
4643 return (NULL);
4644}
4645
4646/**
4647 * xmlSchemaGetPropNodeNs:

Callers 15

xmlSchemaPValAttrQNameFunction · 0.85
xmlSchemaPValAttrIDFunction · 0.85
xmlGetMaxOccursFunction · 0.85
xmlGetMinOccursFunction · 0.85
xmlGetBooleanPropFunction · 0.85
xmlSchemaPValAttrFunction · 0.85
xmlSchemaParseWildcardNsFunction · 0.85

Calls 1

xmlStrEqualFunction · 0.85

Tested by

no test coverage detected