Vinyl
    Preparing search index...

    Interface ElementsRuleOptions

    interface ElementsRuleOptions {
        localPart?: string;
        maxOccurs?: null | number;
        minOccurs?: number;
        namespaceUri?: Maybe<string>;
        useEmptyArrays?: boolean;
    }

    Hierarchy (View Summary)

    Index

    Properties

    localPart?: string

    Matches the QName.localPart of the element. If undefined, this will match against the property name from XmlRules.

    maxOccurs?: null | number

    The maximum number of elements. Use null for unbounded.

    minOccurs?: number

    The minimum number of elements.

    namespaceUri?: Maybe<string>

    Matches the namespaceUri of the element or attribute.

    If null, this will only match against a null namespace. If undefined, this will default to the namespace of the parent element for elements, or null for attributes.

    Note that attributes do not inherit default namespaces as elements do.

    useEmptyArrays?: boolean

    If true and there are 0 occurrences of the element, the parsed value will be an empty array instead of undefined.