Class XmlUtil
java.lang.Object
org.apache.sling.commons.log.logback.internal.util.XmlUtil
Utilities to help processing XML
-
Method Summary
Modifier and TypeMethodDescriptionstatic @Nullable StringEscape the special characters of the input to be safe as an xml stringstatic @NotNull StringprettyPrint(@NotNull InputSource is) Return a pretty string representation of the xml supplied
-
Method Details
-
prettyPrint
Return a pretty string representation of the xml supplied- Parameters:
is- the source for the xml content- Returns:
- the pretty formatted xml
-
escapeXml
Escape the special characters of the input to be safe as an xml string- Parameters:
input- the input to process- Returns:
- the input with the xml special characters replaced with entities
-