that the attribute must have no namespace. Entities are substituted. The returned value must be freed by the caller. This function looks in DTD attribute declaration for #FIXED or default declaration values. NOTE: This function doesn't allow to distinguish malloc failures from missing attributes. It's more robust to use xmlNodeGetAttrValue . )