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

    Function isXml

    • Determine if the specified string has a XML declaration and a root tag if so returns true otherwise false (depends on getRootTagName)

      Parameters

      • xml: string | Buffer<ArrayBufferLike>

        XML string or buffer

      • Optionaloptions: { requireDeclaration?: boolean }

      Returns boolean

      true when this the buffer has a valid XML declaration and root tag otherwise false