@jhulford/libxmljs - v0.0.1-alpha.3
    Preparing search index...

    Type Alias XMLSaveOptions

    XMLSaveOptions: {
        declaration?: boolean;
        encoding?:
            | "HTML"
            | "ASCII"
            | "UTF-8"
            | "UTF-16"
            | "ISO-Latin-1"
            | "ISO-8859-1";
        flags?: XMLSaveFlags[];
        formatting?: "none"
        | "pretty"
        | "full";
        selfCloseEmpty?: boolean;
        type?: "html" | "xml" | "xhtml";
    } & { format?: boolean; whitespace?: boolean }

    Type Declaration

    • Optionaldeclaration?: boolean
    • Optionalencoding?: "HTML" | "ASCII" | "UTF-8" | "UTF-16" | "ISO-Latin-1" | "ISO-8859-1"
      "UTF-8"
      
    • Optionalflags?: XMLSaveFlags[]
    • Optionalformatting?: "none" | "pretty" | "full"

      Inject additional whitespace

      none - output no additional whitespace

      pretty - output minimum additional whitespace for pretty formatting (XML_SAVE_FORMAT)

      full - output all additional whitespace for verbose formatting (XML_SAVE_WSNONSIG)

      Note: this option does not remove or format whitespace that has been explicitly preserved with preserveWhitespace: true

      "pretty"
      
    • OptionalselfCloseEmpty?: boolean
    • Optionaltype?: "html" | "xml" | "xhtml"
    • Optionalformat?: boolean

      Use formatting instead

    • Optionalwhitespace?: boolean

      Use formatting instead