used which statement instead of logical for rep.rows in xmlToDF