Better impl for DocumentBuilder.parse(InputSource)
Handled failing case of xmlParseChunk