Class BambooXmlUtils


  • public class BambooXmlUtils
    extends Object
    • Method Detail

      • newSecureSaxReader

        public static org.dom4j.io.SAXReader newSecureSaxReader()
      • newSecureDocumentBuilderFactory

        public static DocumentBuilderFactory newSecureDocumentBuilderFactory​(@Nullable
                                                                             @Nullable org.apache.log4j.Logger log)
      • newSecureXmlInputFactory

        public static XMLInputFactory newSecureXmlInputFactory()
      • newSecureDigester

        public static org.apache.commons.digester.Digester newSecureDigester()
      • newSecureXmlReader

        @Deprecated
        public static XMLReader newSecureXmlReader()
        Deprecated.
        since 6.4, use {@link SecureXmlParserFactory::newXmlReader}
      • sanitiseXml10

        @NotNull
        public static @NotNull String sanitiseXml10​(@NotNull
                                                    @NotNull String value)
        Removes non-XML 1.0 characters from the input string. The input string is returned as-is if no invalid characters are found.