Provides static helper methods for parsing compilations from and to XML.

Devdoc

Code is written to work with the xml2js module specifically

Constructors

Methods

  • Returns the first item in the array as a boolean, if defined. Otherwise, null is returned as a default.

    Parameters

    • array: string[]

    Returns null | boolean

  • Returns the first item in the array as a number, if defined. Otherwise, null is returned as a default.

    Parameters

    • array: string[]

    Returns null | number

  • Returns the first item in the array, if defined. Otherwise, the empty string is returned as a default.

    Parameters

    • array: string[]

    Returns string

  • Parses an XML object into an ICompilation.

    Parameters

    • xmlCompilation: any

      An object representing the stored Compilation from an XML import.

    Returns ICompilation

    Devdoc

    The XML type contains all properties as arrays, even the single item ones. This is a limitation of the used XML-To-JS converter

  • Parameters

    • xmlCues: any

    Returns ICue[]

    Devdoc

    The XML type contains all properties as arrays, even the single item ones. This is a limitation of the used XML-To-JS converter

  • Parameters

    • xmlTracks: any[]

    Returns ITrack[]

    Devdoc

    The XML type contains all properties as arrays, even the single item ones. This is a limitation of the used XML-To-JS converter