XML read method modified