$property_enums = CIBlockPropertyEnum::GetList(Array("DEF"=>"DESC", "SORT"=>"ASC"), Array("IBLOCK_ID"=>$IBLOCK_ID, "XML_ID"=>"COLORS")); if($enum_fields = $property_enums->GetNext())
$res = CIBlockElement::GetList(Array(), array("IBLOCK_ID"=>$IBLOCK_ID, "=PROPERTY_LIST"=>$enum_fields["ID"]), false, false, array("ID", "NAME"));
$arFilter = Array("XML_ID"=>"3t61g13g971...");