CModule::IncludeModule('iblock');
$arFilter = Array("IBLOCK_ID"=>"$IBLOCK_ID", "ACTIVE_DATE"=>"Y", "ACTIVE"=>"Y", 'INCLUDE_SUBSECTIONS'=>'Y', );
$res = CIBlockElement::GetList(Array(), $arFilter, false, false, array());
while ($ob = $res->GetNextElement())
{
$arr = $ob->GetFields();
$arr["PROPERTIES"] = $ob->GetProperties();
}