@Immutable public final class SchematronResourceHelper extends Object
Modifier and Type | Method and Description |
---|---|
static Node |
getNodeOfSource(Source aSource,
com.helger.xml.serialize.read.DOMReaderSettings aDRS)
Convert the passed transform source into a DOM node.
|
@Nullable public static Node getNodeOfSource(@Nonnull Source aSource, @Nonnull com.helger.xml.serialize.read.DOMReaderSettings aDRS) throws SAXException
DOMSource
and StreamSource
can be handled.aSource
- The transform source to use. May not be null
.aDRS
- DOMReader settings to use. May not be null
.null
.SAXException
- In case XML parsing failsIllegalArgumentException
- in case an unsupported Source
implementation is provided.Copyright © 2014–2019 Philip Helger. All rights reserved.