public final class XMLUtil extends Object
Modifier and Type | Field and Description |
---|---|
static HashSet<String> |
HTML_NO_END_TAG
The set of local names of HTML (any version) elements for which
the end tag must be omitted.
|
Modifier and Type | Method and Description |
---|---|
static SAXParser |
newSAXParser()
Equivalent to
newSAXParser(true, false, false) . |
static SAXParser |
newSAXParser(boolean namespaceAware,
boolean validating,
boolean xIncludeAware)
Convenience method: creates and returns a SAXParser.
|
public static SAXParser newSAXParser() throws ParserConfigurationException, SAXException
newSAXParser(true, false, false)
.public static SAXParser newSAXParser(boolean namespaceAware, boolean validating, boolean xIncludeAware) throws ParserConfigurationException, SAXException
namespaceAware
- specifies whether the parser produced
by this code will provide support for XML namespacesvalidating
- specifies whether the parser produced by
this code will validate documents against their DTDxIncludeAware
- specifies whether the parser produced by
this code will process XIncludesParserConfigurationException
- if a parser cannot be created
which satisfies the requested configurationSAXException
- for SAX errors