xml: ClassLoaderResourceResolver, docs, test refactoring