wraps XML errors which are not very the easiest to tell where they came from