@maxgraph/core
    Preparing search index...

    Function getPrettyXml

    • Returns a pretty printed string that represents the XML tree for the given node. This method should only be used to print XML for reading, use instead to obtain a string for processing.

      Parameters

      • node: null | Element

        DOM node to return the XML for.

      • tab: string = ' '

        Optional string that specifies the indentation for one level.

      • indent: string = ''

        Optional string that represents the current indentation.

      • newline: string = '\n'

        Optional string that represents a linefeed.

      • ns: null | string = null

        Optional string that represents the target namespace URI.

      Returns string