public final class XMLUtil extends Object
Utility XML-related methods. When applicable:
Modifier and Type | Field and Description |
---|---|
static String |
W3C_XML_SCHEMA_NS_URI_1_1 |
Modifier and Type | Method and Description |
---|---|
static DocumentBuilderFactory |
createDocumentBuilderFactory() |
static SAXParserFactory |
createSaxParserFactory() |
static SchemaFactory |
createSchemaFactory() |
static Validator |
createSchemaValidator(Schema schema) |
static XMLEventReader |
createXMLEventReader(Object obj)
Creates an
XMLEventReader from the supplied object representing
XML. |
static XMLInputFactory |
createXMLInputFactory() |
static XMLReader |
createXMLReader() |
protected static String |
toLocalName(QName qname) |
protected static String |
toName(QName qname) |
public static final String W3C_XML_SCHEMA_NS_URI_1_1
public static SchemaFactory createSchemaFactory()
public static XMLReader createXMLReader() throws SAXException
SAXException
public static DocumentBuilderFactory createDocumentBuilderFactory()
public static SAXParserFactory createSaxParserFactory()
public static XMLInputFactory createXMLInputFactory()
public static XMLEventReader createXMLEventReader(Object obj)
Creates an XMLEventReader
from the supplied object representing
XML. Supported types are:
Path
File
Node
XML
String
InputStream
Reader
XMLEventReader
(returns itself)obj
- the object to readCopyright © 2008–2023 Norconex Inc.. All rights reserved.