public final class XMLUtil
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
XMLUtil.ElementHandler |
| Modifier and Type | Method and Description |
|---|---|
static javax.xml.parsers.DocumentBuilder |
createDocumentBuilder() |
static int |
handleChildElements(org.w3c.dom.Element rootElement,
XMLUtil.ElementHandler handler) |
static int |
handleElements(org.w3c.dom.NodeList nodeList,
XMLUtil.ElementHandler handler) |
static int |
handleElementsByTagName(org.w3c.dom.Element rootElement,
java.lang.String tagName,
XMLUtil.ElementHandler handler) |
static org.w3c.dom.Document |
loadDocument(javax.xml.parsers.DocumentBuilder documentBuilder,
java.io.File file) |
static org.w3c.dom.Element |
loadRootElement(javax.xml.parsers.DocumentBuilder documentBuilder,
java.io.File file) |
public static javax.xml.parsers.DocumentBuilder createDocumentBuilder()
throws javax.xml.parsers.ParserConfigurationException
javax.xml.parsers.ParserConfigurationExceptionpublic static org.w3c.dom.Element loadRootElement(javax.xml.parsers.DocumentBuilder documentBuilder,
java.io.File file)
throws java.lang.Exception
java.lang.Exceptionpublic static org.w3c.dom.Document loadDocument(javax.xml.parsers.DocumentBuilder documentBuilder,
java.io.File file)
throws org.xml.sax.SAXException,
java.io.IOException
org.xml.sax.SAXExceptionjava.io.IOExceptionpublic static int handleElements(org.w3c.dom.NodeList nodeList,
XMLUtil.ElementHandler handler)
throws java.lang.Exception
java.lang.Exceptionpublic static int handleChildElements(org.w3c.dom.Element rootElement,
XMLUtil.ElementHandler handler)
throws java.lang.Exception
java.lang.Exceptionpublic static int handleElementsByTagName(org.w3c.dom.Element rootElement,
java.lang.String tagName,
XMLUtil.ElementHandler handler)
throws java.lang.Exception
java.lang.ExceptionCopyright (c) 2004-2019 Eike Stepper (Loehne, Germany) and others.
All rights reserved. This program and the accompanying materials are made available under the terms of the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html