Package org.apache.jackrabbit.webdav.xml
Class ResultHelper
- java.lang.Object
 - 
- org.apache.jackrabbit.webdav.xml.ResultHelper
 
 
- 
public final class ResultHelper extends java.lang.ObjectResultHelperis 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-commonsSerializingContentHandler- See Also:
 - JCR-2897.
 
 
- 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static javax.xml.transform.ResultgetResult(javax.xml.transform.Result result)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. 
 - 
 
- 
- 
Method Detail
- 
getResult
public static javax.xml.transform.Result getResult(javax.xml.transform.Result result) throws org.xml.sax.SAXExceptionIn 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.- Parameters:
 result-- Returns:
 - A instance of 
Resultthat properly handles xmlns attributes. - Throws:
 org.xml.sax.SAXException
 
 - 
 
 -