Migrating to the new XMLException type