XmlUtilities

Package: ghidra.util.xml
Type: class

12.1_PUBLIC

addedmethod: getChildren
static java.util.List<org.jdom2.Element> getChildren(org.jdom2.Element ele, java.lang.String childName)
addedmethod: parseBoundedIntAttr
static int parseBoundedIntAttr(org.jdom2.Element ele, java.lang.String attrName, int minValue, int maxValue) throws NumberFormatException
addedmethod: parseBoundedLongAttr
static long parseBoundedLongAttr(org.jdom2.Element ele, java.lang.String attrName, long minValue, long maxValue) throws NumberFormatException
addedmethod: parseOptionalBooleanAttr
static boolean parseOptionalBooleanAttr(org.jdom2.Element ele, java.lang.String attrName, boolean defaultValue) throws IOException
addedmethod: parseOptionalBoundedIntAttr
static int parseOptionalBoundedIntAttr(org.jdom2.Element ele, java.lang.String attrName, int defaultValue, int minValue, int maxValue) throws NumberFormatException
addedmethod: parseOptionalBoundedLongAttr
static long parseOptionalBoundedLongAttr(org.jdom2.Element ele, java.lang.String attrName, long defaultValue, long minValue, long maxValue) throws NumberFormatException
addedmethod: requireStringAttr
static java.lang.String requireStringAttr(org.jdom2.Element ele, java.lang.String attrName) throws IOException
addedmethod: setIntAttr
static void setIntAttr(org.jdom2.Element ele, java.lang.String attrName, int attrValue)
addedmethod: setStringAttr
static void setStringAttr(org.jdom2.Element ele, java.lang.String attrName, java.lang.String attrValue)
addedmethod: toString
static java.lang.String toString(org.jdom2.Element root)
addedmethod: writeDocToFile
static void writeDocToFile(org.jdom2.Document doc, java.io.File dest) throws IOException
addedmethod: writePrettyDocToFile
static void writePrettyDocToFile(org.jdom2.Document doc, java.io.File dest) throws IOException
addedmethod: xmlToByteArray
static byte[] xmlToByteArray(org.jdom2.Element root)
modifiedmethod: byteArrayToXml
return type: Element → Element
- static org.jdom.Element byteArrayToXml(byte[] bytes)
+ static org.jdom2.Element byteArrayToXml(byte[] bytes)
modifiedmethod: createSecureSAXBuilder
return type: SAXBuilder → SAXBuilder
- static org.jdom.input.SAXBuilder createSecureSAXBuilder(boolean validate, boolean needsDTD)
+ static org.jdom2.input.SAXBuilder createSecureSAXBuilder(boolean validate, boolean needsDTD)
modifiedmethod: fromString
return type: Element → Element; added throws JDOMException; removed throws JDOMException
- static org.jdom.Element fromString(java.lang.String s) throws JDOMException, IOException
+ static org.jdom2.Element fromString(java.lang.String s) throws JDOMException, IOException
modifiedmethod: readDocFromFile
return type: Document → Document; added throws JDOMException; removed throws JDOMException
- static org.jdom.Document readDocFromFile(java.io.File f) throws JDOMException, IOException
+ static org.jdom2.Document readDocFromFile(java.io.File f) throws JDOMException, IOException
modifiedmethod: readDocFromFile
return type: Document → Document; added throws JDOMException; removed throws JDOMException
- static org.jdom.Document readDocFromFile(generic.jar.ResourceFile f) throws JDOMException, IOException
+ static org.jdom2.Document readDocFromFile(generic.jar.ResourceFile f) throws JDOMException, IOException
removedmethod: getChildren
static java.util.List<org.jdom.Element> getChildren(org.jdom.Element ele, java.lang.String childName)
removedmethod: parseBoundedIntAttr
static int parseBoundedIntAttr(org.jdom.Element ele, java.lang.String attrName, int minValue, int maxValue) throws NumberFormatException
removedmethod: parseBoundedLongAttr
static long parseBoundedLongAttr(org.jdom.Element ele, java.lang.String attrName, long minValue, long maxValue) throws NumberFormatException
removedmethod: parseOptionalBooleanAttr
static boolean parseOptionalBooleanAttr(org.jdom.Element ele, java.lang.String attrName, boolean defaultValue) throws IOException
removedmethod: parseOptionalBoundedIntAttr
static int parseOptionalBoundedIntAttr(org.jdom.Element ele, java.lang.String attrName, int defaultValue, int minValue, int maxValue) throws NumberFormatException
removedmethod: parseOptionalBoundedLongAttr
static long parseOptionalBoundedLongAttr(org.jdom.Element ele, java.lang.String attrName, long defaultValue, long minValue, long maxValue) throws NumberFormatException
removedmethod: requireStringAttr
static java.lang.String requireStringAttr(org.jdom.Element ele, java.lang.String attrName) throws IOException
removedmethod: setIntAttr
static void setIntAttr(org.jdom.Element ele, java.lang.String attrName, int attrValue)
removedmethod: setStringAttr
static void setStringAttr(org.jdom.Element ele, java.lang.String attrName, java.lang.String attrValue)
removedmethod: toString
static java.lang.String toString(org.jdom.Element root)
removedmethod: writeDocToFile
static void writeDocToFile(org.jdom.Document doc, java.io.File dest) throws IOException
removedmethod: writePrettyDocToFile
static void writePrettyDocToFile(org.jdom.Document doc, java.io.File dest) throws IOException
removedmethod: xmlToByteArray
static byte[] xmlToByteArray(org.jdom.Element root)

10.1.5_PUBLIC

modifiedmethod: parseBoolean
added throws XmlAttributeException
- static boolean parseBoolean(java.lang.String boolStr)
+ static boolean parseBoolean(java.lang.String boolStr) throws XmlAttributeException

9.1_PUBLIC

addedmethod: getChildren
static java.util.List<org.jdom.Element> getChildren(org.jdom.Element ele, java.lang.String childName)
addedmethod: setIntAttr
static void setIntAttr(org.jdom.Element ele, java.lang.String attrName, int attrValue)
addedmethod: setStringAttr
static void setStringAttr(org.jdom.Element ele, java.lang.String attrName, java.lang.String attrValue)
addedmethod: writePrettyDocToFile
static void writePrettyDocToFile(org.jdom.Document doc, java.io.File dest) throws IOException

9.0.1_PUBLIC

introducedInitial version