Class XMLParser.ParsingOptions

  • Enclosing interface:
    XMLParser

    public static class XMLParser.ParsingOptions
    extends Object
    Option settings for the parser.
    • Field Detail

      • expandXIncludes

        @Deprecated
        public boolean expandXIncludes
        Deprecated.
        XInclude is no longer supported
        Whether to expand <xi:include> elements according to the XInclude spec.
      • expandEnvVarRefs

        public boolean expandEnvVarRefs
        Whether to expand <envVarRef>VARNAME</envVarRef> elements by substituting the value of the System property VARNAME.
      • preserveComments

        public boolean preserveComments
        Whether to preserve comments and ignorable whitespace
    • Constructor Detail

      • ParsingOptions

        @Deprecated
        public ParsingOptions​(boolean aExpandXIncludes,
                              boolean aExpandEnvVarRefs)
        Deprecated.
        XInclude is no longer supported
        Creates a new ParsingOptions object.
        Parameters:
        aExpandXIncludes - Whether to expand <xi:include> elements according to the XInclude spec.
        aExpandEnvVarRefs - Whether to expand <envVarRef>VARNAME</envVarRef> elements by substituting the value of the System property VARNAME.
      • ParsingOptions

        public ParsingOptions​(boolean aExpandEnvVarRefs)
        Creates a new ParsingOptions object.
        Parameters:
        aExpandEnvVarRefs - Whether to expand <envVarRef>VARNAME</envVarRef> elements by substituting the value of the System property VARNAME.