Infinite loop in com.sun.org.apache.xerces.internal.impl.XMLDocumentScanner