Better resource manager and beValidXML combinator