Serializablepublic class XMLParser extends SMYLDObject
NEW_LINE, OS_NEW_LINE| Constructor | Description |
|---|---|
XMLParser() |
| Modifier and Type | Method | Description |
|---|---|---|
org.jdom2.Document |
parseXmlFile(String filename) |
Parses the xml file found at the given path and returns creates a XML
document
|
Document |
parseXmlFile(String filepath,
boolean validating) |
Parses the xml file found at the given path and returns creates a XML
document
|
String |
recoverXMLSymbols(String str) |
Replaces the symbols "~" and "!" with "<" and ">" respectively.
|
String |
replaceXMLSymbols(String str) |
Replaces the symbols "<" and ">" with "~" and "!" respectively.
|
void |
writeXML(String xmlpath,
org.jdom2.Document doc) |
Writes the given JDOM document in the given xml path
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdebug, getLenName, insertInstanceValue, printInstanceValues, toStringpublic Document parseXmlFile(String filepath, boolean validating)
filepath - the path of the file from which the XML document is to be
createdvalidating - whether the file should be validated againist the DTDorg.w3c.dom.Document, created from the given
filepublic org.jdom2.Document parseXmlFile(String filename)
filename - the path of the file from which the XML document is to be
createdJDOM Document, created from the given filepublic void writeXML(String xmlpath, org.jdom2.Document doc)
xmlpath - the path of the xml file where it should be writtendoc - the JDom document that should be writtenpublic String recoverXMLSymbols(String str)
str - the string in which the symbols are to be replacedCopyright © 2019 SMYLD. All rights reserved.