| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static StreamSource | |
| private static String | |
| private static String | |
| private static String | |
| private static String | |
| public static String | Returns: A new string in which all characters that require escaping have been replaced with the corresponding XML entities.the original String orig)Escape control characters (below 0x20) with their XML entities, e.g.
carriage return (
|
| public static String | |
| private static boolean | |
| public static SAXParser | Returns: the created SAXParserthe schema language used, e.g. XML Schema or RelaxNG (as per the String representation in javax.xml.XMLConstants) schemaLanguage, Source... the schemas to validate against schemas)Factory method to create a SAXParser configured to validate according to a particular schema language and optionally providing the schema sources to validate with. |
| public static SAXParser | Returns: the created SAXParserthe schema language used, e.g. XML Schema or RelaxNG (as per the String representation in javax.xml.XMLConstants) schemaLanguage, boolean will the parser be namespace aware namespaceAware, boolean will the parser also validate against DTDs validating, Source... the schemas to validate against schemas)Factory method to create a SAXParser configured to validate according to a particular schema language and optionally providing the schema sources to validate with. |
| public static SAXParser | Returns: the created SAXParserthe schema language used, e.g. XML Schema or RelaxNG (as per the String representation in javax.xml.XMLConstants) schemaLanguage, File a file containing the schema to validate against schema)Factory method to create a SAXParser configured to validate according to a particular schema language and a File containing the schema to validate against. |
| public static SAXParser | Returns: the created SAXParserthe schema language used, e.g. XML Schema or RelaxNG (as per the String representation in javax.xml.XMLConstants) schemaLanguage, boolean will the parser be namespace aware namespaceAware, boolean will the parser also validate against DTDs validating, File a file containing the schema to validate against schema)Factory method to create a SAXParser configured to validate according to a particular schema language and a File containing the schema to validate against. |
| public static SAXParser | Returns: the created SAXParserthe schema language used, e.g. XML Schema or RelaxNG (as per the String representation in javax.xml.XMLConstants) schemaLanguage, URL a URL pointing to the schema to validate against schema)Factory method to create a SAXParser configured to validate according to a particular schema language and an URL pointing to the schema to validate against. |
| public static SAXParser | Returns: the created SAXParserthe schema language used, e.g. XML Schema or RelaxNG (as per the String representation in javax.xml.XMLConstants) schemaLanguage, boolean will the parser be namespace aware namespaceAware, boolean will the parser also validate against DTDs validating, URL a URL pointing to the schema to validate against schema)Factory method to create a SAXParser configured to validate according to a particular schema language and an URL pointing to the schema to validate against. |
| private static SAXParser | |
| public static String | |
| public static void | serialize(Element
the Element to serialize element, OutputStream the OutputStream to write to os)Write a pretty version of the Element to the OutputStream. |
| public static void | |
| public static String | |
| public static void | serialize(Node
the Node to serialize node, OutputStream the OutputStream to write to os)Write a pretty version of the Node to the OutputStream. |
| public static void | |
| public static String | Returns: the pretty String representation of the GPathResulta GPathResult to serialize to a String node)Return a pretty version of the GPathResult. |
| public static void | serialize(GPathResult
a GPathResult to serialize node, OutputStream the OutputStream to write to os)Write a pretty version of the GPathResult to the OutputStream. |
| public static void | serialize(GPathResult
a GPathResult to serialize node, Writer the Writer to write to w)Write a pretty version of the GPathResult to the Writer. |
| public static String | |
| public static void | serialize(Writable
the Writable to serialize writable, OutputStream the OutputStream to write to os)Write a pretty version of the XML content produced by the Writable to the OutputStream. |
| public static void | |
| public static String | |
| public static void | serialize(String
the String to serialize xmlString, OutputStream the OutputStream to write to os)Write a pretty version of the given XML string to the OutputStream. |
| public static void | |
| private static void | |
| private static void | |
| private static void | |
| private static void |
| XmlUtil | back to summary |
|---|---|
| public XmlUtil() | |
| asStreamSource | back to summary |
|---|---|
| private static StreamSource asStreamSource(String xmlString) | |
| asString | back to summary |
|---|---|
| private static String asString(Node node) | |
| asString | back to summary |
|---|---|
| private static String asString(GPathResult node) | |
| asString | back to summary |
|---|---|
| private static String asString(Writable writable) | |
| asStringAdjusted | back to summary |
|---|---|
| private static String asStringAdjusted(Object node) | |
| escapeControlCharacters | back to summary |
|---|---|
| public static String escapeControlCharacters(String orig) Escape control characters (below 0x20) with their XML entities, e.g.
carriage return (
| |
| escapeXml | back to summary |
|---|---|
| public static String escapeXml(String orig) Escape the following characters
| |
| isOrExtendsLegacyGPathResult | back to summary |
|---|---|
| private static boolean isOrExtendsLegacyGPathResult(Class<T> candidate) | |
| newSAXParser | back to summary |
|---|---|
| public static SAXParser newSAXParser(String schemaLanguage, Source... schemas) throws SAXException, ParserConfigurationException Factory method to create a SAXParser configured to validate according to a particular schema language and optionally providing the schema sources to validate with. The created SAXParser will be namespace-aware and not validate against DTDs.
| |
| newSAXParser | back to summary |
|---|---|
| public static SAXParser newSAXParser(String schemaLanguage, boolean namespaceAware, boolean validating, Source... schemas) throws SAXException, ParserConfigurationException Factory method to create a SAXParser configured to validate according to a particular schema language and optionally providing the schema sources to validate with.
| |
| newSAXParser | back to summary |
|---|---|
| public static SAXParser newSAXParser(String schemaLanguage, File schema) throws SAXException, ParserConfigurationException Factory method to create a SAXParser configured to validate according to a particular schema language and a File containing the schema to validate against. The created SAXParser will be namespace-aware and not validate against DTDs.
| |
| newSAXParser | back to summary |
|---|---|
| public static SAXParser newSAXParser(String schemaLanguage, boolean namespaceAware, boolean validating, File schema) throws SAXException, ParserConfigurationException Factory method to create a SAXParser configured to validate according to a particular schema language and a File containing the schema to validate against.
| |
| newSAXParser | back to summary |
|---|---|
| public static SAXParser newSAXParser(String schemaLanguage, URL schema) throws SAXException, ParserConfigurationException Factory method to create a SAXParser configured to validate according to a particular schema language and an URL pointing to the schema to validate against. The created SAXParser will be namespace-aware and not validate against DTDs.
| |
| newSAXParser | back to summary |
|---|---|
| public static SAXParser newSAXParser(String schemaLanguage, boolean namespaceAware, boolean validating, URL schema) throws SAXException, ParserConfigurationException Factory method to create a SAXParser configured to validate according to a particular schema language and an URL pointing to the schema to validate against.
| |
| newSAXParser | back to summary |
|---|---|
| private static SAXParser newSAXParser(boolean namespaceAware, boolean validating, Schema schema1) throws ParserConfigurationException, SAXException | |
| serialize | back to summary |
|---|---|
| public static String serialize(Element element) Return a pretty String version of the Element. | |
| serialize | back to summary |
|---|---|
| public static void serialize(Element element, OutputStream os) Write a pretty version of the Element to the OutputStream.
| |
| serialize | back to summary |
|---|---|
| public static void serialize(Element element, Writer w) Write a pretty version of the Element to the Writer. | |
| serialize | back to summary |
|---|---|
| public static String serialize(Node node) Return a pretty String version of the Node. | |
| serialize | back to summary |
|---|---|
| public static void serialize(Node node, OutputStream os) Write a pretty version of the Node to the OutputStream.
| |
| serialize | back to summary |
|---|---|
| public static void serialize(Node node, Writer w) Write a pretty version of the Node to the Writer. | |
| serialize | back to summary |
|---|---|
| public static String serialize(GPathResult node) Return a pretty version of the GPathResult.
| |
| serialize | back to summary |
|---|---|
| public static void serialize(GPathResult node, OutputStream os) Write a pretty version of the GPathResult to the OutputStream.
| |
| serialize | back to summary |
|---|---|
| public static void serialize(GPathResult node, Writer w) Write a pretty version of the GPathResult to the Writer.
| |
| serialize | back to summary |
|---|---|
| public static String serialize(Writable writable) Return a pretty String version of the XML content produced by the Writable. | |
| serialize | back to summary |
|---|---|
| public static void serialize(Writable writable, OutputStream os) Write a pretty version of the XML content produced by the Writable to the OutputStream.
| |
| serialize | back to summary |
|---|---|
| public static void serialize(Writable writable, Writer w) Write a pretty version of the XML content produced by the Writable to the Writer. | |
| serialize | back to summary |
|---|---|
| public static String serialize(String xmlString) Return a pretty version of the XML content contained in the given String. | |
| serialize | back to summary |
|---|---|
| public static void serialize(String xmlString, OutputStream os) Write a pretty version of the given XML string to the OutputStream.
| |
| serialize | back to summary |
|---|---|
| public static void serialize(String xmlString, Writer w) Write a pretty version of the given XML string to the Writer. | |
| serialize | back to summary |
|---|---|
| private static void serialize(Source source, OutputStream os) | |
| serialize | back to summary |
|---|---|
| private static void serialize(Source source, Writer w) | |
| serialize | back to summary |
|---|---|
| private static void serialize(Source source, StreamResult target) | |
| setIndent | back to summary |
|---|---|
| private static void setIndent(TransformerFactory factory, int indent) | |