Package org.eclipse.net4j.util
Class XMLUtil
java.lang.Object
org.eclipse.net4j.util.XMLUtil
- Since:
- 3.4
- Author:
- Eike Stepper
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentBuilderstatic inthandleChildElements(Element rootElement, XMLUtil.ElementHandler handler) static inthandleElements(NodeList nodeList, XMLUtil.ElementHandler handler) static inthandleElementsByTagName(Element rootElement, String tagName, XMLUtil.ElementHandler handler) static DocumentloadDocument(DocumentBuilder documentBuilder, File file) static ElementloadRootElement(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:
SAXExceptionIOException
-
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
-