Variable: createName_2
const createName_2: (attributes: {
[qualifiedName: `${string}:${string}`]: string | undefined;
}, content:
| name_2$Children
| (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| simpleValue
| Xs_restriction)[]) => name_2 & {
all: (parent?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}) => name_2[];
descendants: (parent?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}) => name_2[];
elementName: string;
from: (parent?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}) => name_2 | undefined;
is: (element?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}) => element is name_2;
namespaceURI: string;
} & {
defaults: Partial<{
[qualifiedName: `${string}:${string}`]: string | undefined;
}>;
read(element?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}):
| {
attributes: {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
children: {
restriction: Xs_restriction;
simpleValue: simpleValue;
};
}
| undefined;
update(element: name_2, attributes: Partial<E["attributes"]>, changes: Partial<F>): name_2;
};
Create/read the XML name element. Named children follow XSD order and occurrence constraints.
Type Declaration
all
all: (parent?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}) => name_2[];
Parameters
parent?
attributes
Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
}
content
(
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[]
name
string
namespaces?
Record<string, string>
namespaceURI
string
prefix?
string
Returns
name_2[]
descendants
descendants: (parent?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}) => name_2[];
Parameters
parent?
attributes
Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
}
content
(
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[]
name
string
namespaces?
Record<string, string>
namespaceURI
string
prefix?
string
Returns
name_2[]
elementName
elementName: string = definition.name;
from
from: (parent?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}) => name_2 | undefined;
Parameters
parent?
attributes
Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
}
content
(
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[]
name
string
namespaces?
Record<string, string>
namespaceURI
string
prefix?
string
Returns
name_2 | undefined
is
is: (element?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}) => element is name_2;
Parameters
element?
attributes
Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
}
content
(
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, ... | ...> & {
[qualifiedName: `${(...)}:${(...)}`]: ... | ...;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[]
name
string
namespaces?
Record<string, string>
namespaceURI
string
prefix?
string
Returns
element is name_2
namespaceURI
namespaceURI: string = definition.namespaceURI;
defaults
defaults: Partial<{
[qualifiedName: `${string}:${string}`]: string | undefined;
}>;
read()
read(element?: {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
}):
| {
attributes: {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
children: {
restriction: Xs_restriction;
simpleValue: simpleValue;
};
}
| undefined;
Parameters
element?
attributes
Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
}
content
(
| string
| {
kind: "comment";
value: string;
}
| {
kind: "instruction";
target: string;
value: string;
}
| {
attributes: Record<string, string | undefined> & {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
content: (string | XmlComment | XmlInstruction | GenericElement)[];
name: string;
namespaces?: Record<string, string>;
namespaceURI: string;
prefix?: string;
})[]
name
string
namespaces?
Record<string, string>
namespaceURI
string
prefix?
string
Returns
| {
attributes: {
[qualifiedName: `${string}:${string}`]: string | undefined;
};
children: {
restriction: Xs_restriction;
simpleValue: simpleValue;
};
}
| undefined
update()
update(
element: name_2,
attributes: Partial<E["attributes"]>,
changes: Partial<F>
): name_2;
Parameters
element
attributes
Partial<E["attributes"]>
changes
Partial<F>