u_cfAttribute u_cfElementAttribute( u_cfElement element, const c_char *name) { u_result r; v_cfElement ke; v_cfAttribute attr; u_cfAttribute attribute; u_participant p; attribute = NULL; if (element != NULL) { r = u_cfNodeReadClaim(u_cfNode(element), (v_cfNode*)(&ke)); if (r == U_RESULT_OK) { p = u_cfNodeParticipant(u_cfNode(element)); attr = v_cfElementAttribute(ke, name); if(attr){ attribute = u_cfAttributeNew(p, attr); } u_cfNodeRelease(u_cfNode(element)); } } return attribute; }
c_value v_cfElementAttributeValue( v_cfElement element, const c_char *attributeName) { v_cfAttribute attr; c_value value; assert(C_TYPECHECK(element, v_cfElement)); assert(attributeName != NULL); attr = v_cfElementAttribute(element, attributeName); if (attr != NULL) { value = v_cfAttributeValue(attr); } else { value = c_undefinedValue(); } return value; }