Type of an XML schema definition.

It defines the types allowed in an xml file, usually derived from an xsd file.

Constructors

Properties

complexTypes: Map<string, ComplexType> = ...

Complex types of the xml schema.

simpleTypes: Map<string, SimpleType> = ...

Simple types of the xml schema.

Accessors

  • get parentsMap(): Map<string, string[]>
  • Map which associates the names of complex XML types to their parents' names.

    Returns Map<string, string[]>

  • get typePaths(): Map<string, string[][] | "infinite">
  • Map which associates the names of complex XML types to their possible paths in an XML file.

    The paths are represented as an array of type names. If a type is recursive, the value is 'infinite'.

    Returns Map<string, string[][] | "infinite">

Methods

  • Returns {
        complexTypes: {
            attributes: Attribute[];
            children: {
                maxOccurs: undefined | number;
                minOccurs: undefined | number;
                type: string;
            }[];
            doc: undefined | string;
            name: string;
        }[];
        simpleTypes: SimpleType[];
    }

    • complexTypes: {
          attributes: Attribute[];
          children: {
              maxOccurs: undefined | number;
              minOccurs: undefined | number;
              type: string;
          }[];
          doc: undefined | string;
          name: string;
      }[]
    • simpleTypes: SimpleType[]
  • Parameters

    • data: {
          complexTypes: {
              attributes: Attribute[];
              children: {
                  maxOccurs: undefined | number;
                  minOccurs: undefined | number;
                  type: string;
              }[];
              doc: undefined | string;
              name: string;
          }[];
          simpleTypes: SimpleType[];
      }
      • complexTypes: {
            attributes: Attribute[];
            children: {
                maxOccurs: undefined | number;
                minOccurs: undefined | number;
                type: string;
            }[];
            doc: undefined | string;
            name: string;
        }[]
      • simpleTypes: SimpleType[]

    Returns XmlSchema