public class XMLUtils
extends java.lang.Object
| Constructor and Description |
|---|
XMLUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
ElementToStream(org.w3c.dom.Element element,
java.io.OutputStream out) |
static org.xml.sax.InputSource |
getInputSourceFromURI(java.lang.String uri)
Utility to get the bytes uri.
|
static javax.xml.parsers.DocumentBuilderFactory |
getSecuredDocumentBuilder()
Create DocumentBuilderFactory with the XXE and XEE prevention measurements.
|
static java.lang.String |
PrettyDocumentToString(org.w3c.dom.Document doc) |
static org.xml.sax.InputSource |
sourceToInputSource(javax.xml.transform.Source source)
Utility to get the bytes uri
|
public static java.lang.String PrettyDocumentToString(org.w3c.dom.Document doc)
public static void ElementToStream(org.w3c.dom.Element element,
java.io.OutputStream out)
public static org.xml.sax.InputSource sourceToInputSource(javax.xml.transform.Source source)
source - the resource to getpublic static org.xml.sax.InputSource getInputSourceFromURI(java.lang.String uri)
uri - the resource to getpublic static javax.xml.parsers.DocumentBuilderFactory getSecuredDocumentBuilder()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.