correction to xmlLoader