Interface XmlNodeParameters

Source
interface XmlNodeParameters {
    dataPropertyName?: string;
    mode?: "jsonToxml" | "xmlToJson";
    options?:
        | {
            allowSurrogateChars?: boolean;
            attrkey?: string;
            cdata?: boolean;
            charkey?: string;
            headless?: boolean;
            rootName?: string;
        }
        | {
            attrkey?: string;
            charkey?: string;
            explicitArray?: boolean;
            explicitRoot?: boolean;
            ignoreAttrs?: boolean;
            mergeAttrs?: boolean;
            normalize?: boolean;
            normalizeTags?: boolean;
            trim?: boolean;
        };
}

Properties§

Source§

readonly dataPropertyName?: string

Name of the property to which to contains the converted XML data Default: "data"

Source§

readonly mode?: "jsonToxml" | "xmlToJson"

From and to what format the data should be converted Default: "xmlToJson"

Source§

readonly options?:
    | {
        allowSurrogateChars?: boolean;
        attrkey?: string;
        cdata?: boolean;
        charkey?: string;
        headless?: boolean;
        rootName?: string;
    }
    | {
        attrkey?: string;
        charkey?: string;
        explicitArray?: boolean;
        explicitRoot?: boolean;
        ignoreAttrs?: boolean;
        mergeAttrs?: boolean;
        normalize?: boolean;
        normalizeTags?: boolean;
        trim?: boolean;
    }

Default: {}