Adding XML reader and applying the return array fix (return a copy of
the array instead)