public class XmlUtils extends Object
| Constructor and Description |
|---|
XmlUtils() |
| Modifier and Type | Method and Description |
|---|---|
static Element |
asElement(Node n) |
static Document |
createDocument() |
static DocumentBuilder |
createDocumentBuilder(boolean safe) |
static String |
createElementName(String name) |
static String |
documentToString(Document document) |
static String |
elementToString(Element elem) |
static boolean |
isNode(Element n,
String... names) |
static Iterable<Node> |
iterable(Node n) |
static String |
nodePath(Node n) |
static boolean |
testNode(Node n,
Predicate<Node> tst) |
static boolean |
visitNode(Node n,
Predicate<Node> tst) |
static void |
writeDocument(Document document,
StreamResult writer,
boolean compact,
boolean headerDeclaration) |
public static Document createDocument()
public static DocumentBuilder createDocumentBuilder(boolean safe)
public static void writeDocument(Document document, StreamResult writer, boolean compact, boolean headerDeclaration)
Copyright © 2026 vpc open source initiative. All rights reserved.