Package com.xmlmind.util
Class XMLUtil
- java.lang.Object
-
- com.xmlmind.util.XMLUtil
-
public final class XMLUtil extends Object
A collection of utility functions (static methods) related to XML.
-
-
Field Summary
Fields Modifier and Type Field 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.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static SAXParser
newSAXParser()
Equivalent tonewSAXParser(true, false, false)
.static SAXParser
newSAXParser(boolean namespaceAware, boolean validating, boolean xIncludeAware)
Convenience method: creates and returns a SAXParser.
-
-
-
Method Detail
-
newSAXParser
public static SAXParser newSAXParser() throws ParserConfigurationException, SAXException
Equivalent tonewSAXParser(true, false, false)
.
-
newSAXParser
public static SAXParser newSAXParser(boolean namespaceAware, boolean validating, boolean xIncludeAware) throws ParserConfigurationException, SAXException
Convenience method: creates and returns a SAXParser.- Parameters:
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 XIncludes- Returns:
- newly created SAXParser
- Throws:
ParserConfigurationException
- if a parser cannot be created which satisfies the requested configurationSAXException
- for SAX errors
-
-