| 6657 | } |
| 6658 | |
| 6659 | static xmlChar* |
| 6660 | xmlGetPropNodeValueInternal(const xmlAttr *prop) |
| 6661 | { |
| 6662 | if (prop == NULL) |
| 6663 | return(NULL); |
| 6664 | if (prop->type == XML_ATTRIBUTE_NODE) { |
| 6665 | return(xmlNodeGetContent((xmlNodePtr) prop)); |
| 6666 | } else if (prop->type == XML_ATTRIBUTE_DECL) { |
| 6667 | return(xmlStrdup(((xmlAttributePtr)prop)->defaultValue)); |
| 6668 | } |
| 6669 | return(NULL); |
| 6670 | } |
| 6671 | |
| 6672 | /** |
| 6673 | * xmlHasProp: |
no test coverage detected