* xmlGetProp: * @node: the node * @name: the attribute name * * Search and get the value of an attribute associated to a node * This does the entity substitution. * This function looks in DTD attribute declaration for #FIXED or * default declaration values. * * NOTE: This function acts independently of namespaces associated * to the attribute. Use xmlGetNsProp() or xmlGetNoNsProp
| 6800 | * failed. It's up to the caller to free the memory with xmlFree(). |
| 6801 | */ |
| 6802 | xmlChar * |
| 6803 | xmlGetProp(const xmlNode *node, const xmlChar *name) { |
| 6804 | xmlAttrPtr prop; |
| 6805 | |
| 6806 | prop = xmlHasProp(node, name); |
| 6807 | if (prop == NULL) |
| 6808 | return(NULL); |
| 6809 | return(xmlGetPropNodeValueInternal(prop)); |
| 6810 | } |
| 6811 | |
| 6812 | /** |
| 6813 | * xmlGetNoNsProp: |
no test coverage detected