Stop using an internal, JVM implementation-specific XMLInputFactory,
since this reduces the portability of the code.