Package org.eclipse.net4j.util
Class XMLUtil
java.lang.Object
org.eclipse.net4j.util.XMLUtil
- Since:
- 3.4
- Author:
- Eike Stepper
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentBuilder
static int
handleChildElements
(Element rootElement, XMLUtil.ElementHandler handler) static int
handleElements
(NodeList nodeList, XMLUtil.ElementHandler handler) static int
handleElementsByTagName
(Element rootElement, String tagName, XMLUtil.ElementHandler handler) static Document
loadDocument
(DocumentBuilder documentBuilder, File file) static Element
loadRootElement
(DocumentBuilder documentBuilder, File file)
-
Method Details
-
createDocumentBuilder
- Throws:
ParserConfigurationException
-
loadRootElement
- Throws:
Exception
-
loadDocument
public static Document loadDocument(DocumentBuilder documentBuilder, File file) throws SAXException, IOException - Throws:
SAXException
IOException
-
handleElements
public static int handleElements(NodeList nodeList, XMLUtil.ElementHandler handler) throws Exception - Throws:
Exception
-
handleChildElements
public static int handleChildElements(Element rootElement, XMLUtil.ElementHandler handler) throws Exception - Throws:
Exception
-
handleElementsByTagName
public static int handleElementsByTagName(Element rootElement, String tagName, XMLUtil.ElementHandler handler) throws Exception - Throws:
Exception
-