vlocode-project - v1.40.0-beta-4
    Preparing search index...

    Function isValid

    • Validates if the specified string has a valid XML syntax structure.

      Parameters

      • xml: string | Buffer<ArrayBufferLike>

        String or Buffer to validate, when a buffer is passed it iis converted to a string before parsing.

      Returns boolean

      True if the string is valid XML otherwise false.