Mapping XML Schema to TypeScript types

To work with XML Schema in TypeScript applications and create valid XML documents in a type-safe way, a mapping of XML Schemas to TypeScript types can be very useful.

Sequences

Sequences in XML Schema are ordered lists of specific types. Types in a sequence have a minimum and a maximum occurrence, resulting in different requirements:

- Types in a sequence can be optional

- Types in a sequence can be required

- Types in a sequence can be allowed to occur multiple or even unbounded times

Sequences can be mapped to arrays or tuples in TypeScript.