public class XmlUtil extends Object
| Constructor and Description |
|---|
XmlUtil() |
| Modifier and Type | Method and Description |
|---|---|
static DocumentBuilder |
createDocumentBuilder()
Create a new
DocumentBuilder which processes XML securely. |
static SAXParser |
createSaxParser()
Create a new
SAXParser which processes XML securely. |
public static DocumentBuilder createDocumentBuilder()
DocumentBuilder which processes XML securely.DocumentBuilder instance.IllegalStateException - Thrown if errors occurred creating the builder.public static SAXParser createSaxParser()
SAXParser which processes XML securely.SAXParser instance.IllegalStateException - Thrown if errors occurred creating the parser.Copyright © 2026 The Apache Software Foundation. All rights reserved.