- parseDOM
Parses a DOM from the given XML string.
- createBuilder
Creates a new DocumentBuilder via DocumentBuilderFactoryor logs and throws a
RuntimeException.
- dumpXML
Dumps the given OME-XML DOM tree to a string.
- indentXML
Indents XML to be more readable, avoiding any whitespace injection into CDATA if
the preserveCData f
- parseXML
Parses the XML contained in the given byte array into using the specified XML
handler.
- transformXML
Transforms the given XML data using the specified XSLT stylesheet.
- validateXML
Attempts to validate the given XML string using Java's XML validation facility.
- sanitizeXML
Remove invalid characters from an XML string.
- writeXML
Writes the specified DOM to the given stream.
- avoidUndeclaredNamespaces
Replaces NS:tag with NS_tag for undeclared namespaces
- checkUTF8
Checks the given stream for a UTF-8 BOM header, skipping it if present. If no
UTF-8 BOM is present,
- createDocument
Calls DocumentBuilder#newDocument() on a #createBuilder().