public final class XMLUtil extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
XMLUtil.ElementHandler |
static class |
XMLUtil.ElementUpdater |
Modifier and Type | Method and Description |
---|---|
static DocumentBuilder |
createDocumentBuilder() |
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 Document |
loadDocument(DocumentBuilder documentBuilder,
InputStream inputStream) |
static Element |
loadRootElement(DocumentBuilder documentBuilder,
File file) |
static Element |
loadRootElement(DocumentBuilder documentBuilder,
InputStream inputStream) |
public static DocumentBuilder createDocumentBuilder() throws ParserConfigurationException
ParserConfigurationException
public static Document loadDocument(DocumentBuilder documentBuilder, InputStream inputStream) throws SAXException, IOException
SAXException
IOException
public static Document loadDocument(DocumentBuilder documentBuilder, File file) throws SAXException, IOException
SAXException
IOException
public static Element loadRootElement(DocumentBuilder documentBuilder, InputStream inputStream) throws Exception
Exception
public static Element loadRootElement(DocumentBuilder documentBuilder, File file) throws Exception
Exception
public static int handleElements(NodeList nodeList, XMLUtil.ElementHandler handler) throws Exception
Exception
public static int handleChildElements(Element rootElement, XMLUtil.ElementHandler handler) throws Exception
Exception
public static int handleElementsByTagName(Element rootElement, String tagName, XMLUtil.ElementHandler handler) throws Exception
Exception
Copyright (c) 2014 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 v2.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v20.html