Singleton docbuilderfactory

Improve DocumentReader XML handling.