public final class ResultHelper
extends java.lang.Object
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
SerializingContentHandler
Modifier and Type | Method and Description |
---|---|
static javax.xml.transform.Result |
getResult(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.
|
public static javax.xml.transform.Result getResult(javax.xml.transform.Result result) throws org.xml.sax.SAXException
result
- Result
that properly handles xmlns attributes.org.xml.sax.SAXException
Copyright © 2010 - 2020 Adobe. All Rights Reserved