java.lang.Object
org.apache.sling.commons.log.logback.internal.util.XmlUtil

public class XmlUtil extends Object
Utilities to help processing XML
  • Methodendetails

    • prettyPrint

      @NotNull public static @NotNull String prettyPrint(@NotNull @NotNull InputSource is)
      Return a pretty string representation of the xml supplied
      Parameter:
      is - the source for the xml content
      Gibt zurück:
      the pretty formatted xml
    • escapeXml

      @Nullable public static @Nullable String escapeXml(@Nullable @Nullable String input)
      Escape the special characters of the input to be safe as an xml string
      Parameter:
      input - the input to process
      Gibt zurück:
      the input with the xml special characters replaced with entities