ResultHelper is a utility to assert proper namespace handling
due to misbehavior of certain implementations with respect to xmlns attributes.
The code is copied and slightly modified from jcr-commons
In case the underlying XML library doesn't properly handle xmlns attributes
this method creates new content handler dealing with the misbehavior and
returns an new instance of SAXResult. Otherwise the passed result
is returned back.
A instance of Result that properly handles xmlns attributes.