Welcome to JavaRanch.
There are any number of ways for reading an XML file. If you're required to use a JVM that does not support the preferred way, it would seem that you will need to put in place a workaround on those obsolete JVMs.
At this point I should insert the obligatory reminder that Java 5 and Java 6 are not supported any more, so
you should upgrade to Java 7 posthaste for security reasons, if for nothing else.