public final class XMLUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
XMLUtils.ElementVisitor<E extends Exception> |
| Modifier and Type | Method and Description |
|---|---|
static <E extends Exception> |
forEachElement(NodeList nodeList,
XMLUtils.ElementVisitor<E> visitor)
Visit each element in a node list.
|
public static <E extends Exception> void forEachElement(NodeList nodeList, XMLUtils.ElementVisitor<E> visitor) throws E extends Exception
Element, otherwise it will throw a ClassCastException.nodeList - The node list over which to iterate.visitor - The visitor to invoke for each element on the node list.ClassCastException - If not all nodes on the list are an
Element.E - If the visitor throws a checked exception of the specified or
inferred type.E extends ExceptionCopyright © 2011–2023 pepsoft.org. All rights reserved.