Package com.stimulsoft.lib.utils
Class StiXmlUtil
java.lang.Object
com.stimulsoft.lib.utils.StiXmlUtil
-
Method Summary
Modifier and TypeMethodDescriptionstatic Stringstatic DocumentBuilderFactorystatic booleanisAttributeNode(Node node) static booleanisElementNode(Node node) static booleanisTextNode(Node node) static DocumentparseFromString(String xmlString) static DocumentparseXmlFile(File file) static DocumentparseXmlFile(String name) static DocumentparseXmlInputStream(InputStream inputStream) static DocumentparseXmlInputStream(InputStream inputStream, boolean removeDoctype) static voidprocessRelations(Element element, String elementPath, Integer relationId, HashMap<String, Integer> relations) Set relations to xml Documentstatic voidsaveDocumentInFile(Document document, String fileName, boolean formatOutput) static voidxmlDocumentToOutputStream(Document document, OutputStream out, boolean formatOutput)
-
Method Details
-
getBuilderFactory
-
saveDocumentInFile
public static void saveDocumentInFile(Document document, String fileName, boolean formatOutput) throws TransformerException, IOException - Throws:
TransformerExceptionIOException
-
xmlDocumentToOutputStream
public static void xmlDocumentToOutputStream(Document document, OutputStream out, boolean formatOutput) throws IOException, TransformerException - Throws:
IOExceptionTransformerException
-
convertXMLFileToString
-
parseXmlFile
-
parseXmlInputStream
-
parseXmlInputStream
-
parseXmlFile
-
parseFromString
-
isElementNode
-
isTextNode
-
isAttributeNode
-
processRelations
public static void processRelations(Element element, String elementPath, Integer relationId, HashMap<String, Integer> relations) Set relations to xml Document- Parameters:
element-elementPath-relationId-relations-
-