Added parsing for XML files