public class Utils extends Object
| Constructor and Description |
|---|
Utils() |
| Modifier and Type | Method and Description |
|---|---|
static Document |
createNewDocument()
Create Document Object
|
static DocumentBuilderFactory |
getSecuredDocumentBuilderFactory()
Create DocumentBuilderFactory with the XXE prevention measurements
|
static String |
getStringFromDocument(Document doc)
Convert Document element to a String object
|
public static String getStringFromDocument(Document doc) throws TransformerException
doc - Document elementTransformerException - throws when transform failspublic static Document createNewDocument() throws ParserConfigurationException
ParserConfigurationException - throwspublic static DocumentBuilderFactory getSecuredDocumentBuilderFactory()
Copyright © 2022 WSO2. All rights reserved.