Handle XML files