Package org.biojava3.core.util
Class XMLHelper
java.lang.Object
org.biojava3.core.util.XMLHelper
- Author:
- Scooter
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Element
addChildElement
(Element parentElement, String elementName) static Document
static Document
inputStreamToDocument
(InputStream inputStream) static Document
static void
outputToStream
(Document document, OutputStream outputStream) static void
outputToStream
(Element document, OutputStream outputStream) selectElements
(Element element, String xpathExpression) static Element
selectParentElement
(Element element, String parentName) static Element
selectSingleElement
(Element element, String xpathExpression)
-
Constructor Details
-
XMLHelper
public XMLHelper()
-
-
Method Details
-
addChildElement
-
getNewDocument
- Throws:
Exception
-
loadXML
- Throws:
Exception
-
inputStreamToDocument
- Throws:
Exception
-
outputToStream
- Throws:
Exception
-
outputToStream
- Throws:
Exception
-
selectParentElement
-
selectSingleElement
- Throws:
Exception
-
selectElements
public static ArrayList<Element> selectElements(Element element, String xpathExpression) throws Exception - Throws:
Exception
-