getchildren returns an array of records