* 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. */
| 4628 | * Returns the attribute or NULL if not present. |
| 4629 | */ |
| 4630 | static xmlAttrPtr |
| 4631 | xmlSchemaGetPropNode(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: |
no test coverage detected