$rs = $DB->Query("select count(*) C from b_xml_tree where PARENT_ID = ".inval($NS["XML_ELEMENTS_PARENT"]));