Class Convert
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumenttoDocument(Source s) Creates a DOM Document from a TraX Source.static DocumenttoDocument(Source s, DocumentBuilderFactory factory) Creates a DOM Document from a TraX Source.static InputSourceCreates a SAX InputSource from a TraX Source.static InputSourcetoInputSource(Source s, TransformerFactory fac) Creates a SAX InputSource from a TraX Source.static NamespaceContexttoNamespaceContext(Map<String, String> prefix2URI) Creates a JAXP NamespaceContext from a Map prefix => Namespace URI.static NodeCreates a DOM Node from a TraX Source.static NodetoNode(Source s, DocumentBuilderFactory factory) Creates a DOM Node from a TraX Source.private static Documentprivate static Node
-
Constructor Details
-
Convert
private Convert()
-
-
Method Details
-
toInputSource
Creates a SAX InputSource from a TraX Source.May use an XSLT identity transformation if SAXSource cannot convert it directly.
- Parameters:
s- the source to convert
-
toInputSource
Creates a SAX InputSource from a TraX Source.May use an XSLT identity transformation if SAXSource cannot convert it directly.
- Parameters:
s- the source to convertfac- the TransformerFactory to use, will use the defaul factory if the value is null.
-
toDocument
Creates a DOM Document from a TraX Source.If the source is a
DOMSourceholding a Document Node, this one will be returned. OtherwisetoInputSource(javax.xml.transform.Source)and a namespace aware DocumentBuilder (created by the default DocumentBuilderFactory) will be used to read the source. This may involve an XSLT identity transform in toInputSource. -
toDocument
Creates a DOM Document from a TraX Source.If the source is a
DOMSourceholding a Document Node, this one will be returned. OtherwisetoInputSource(javax.xml.transform.Source)and a namespace aware DocumentBuilder (created by given DocumentBuilderFactory) will be used to read the source. This may involve an XSLT identity transform in toInputSource. -
tryExtractDocFromDOMSource
-
toNode
Creates a DOM Node from a TraX Source.If the source is a
DOMSourceits Node will be returned, otherwise this delegates totoDocument(javax.xml.transform.Source). -
toNode
Creates a DOM Node from a TraX Source.If the source is a
DOMSourceits Node will be returned, otherwise this delegates totoDocument(javax.xml.transform.Source). -
tryExtractNodeFromDOMSource
-
toNamespaceContext
Creates a JAXP NamespaceContext from a Map prefix => Namespace URI.
-