Altova MapForce 2025 Professional Edition

When code is generated from an XML schema, a class with the following members is created for each member element of a type. The class implements the standard System.Collections.IEnumerable interface, so it can be used with the foreach statement.

 

In the descriptions below, "MemberType" stands for the type of the member element itself.

 

Methods


Name

Description

ic_method

MemberType Append()

Creates a new element and appends it to its parent.

ic_method

MemberType AppendWithPrefix(string prefix)

Creates a new element having the prefix supplied as argument, and appends it to its parent. For an example, see Example: Purchase Order.

ic_method

MemberType At(int index)

Returns the member element specified by the index.

ic_method

System.Collections.IEnumerator GetEnumerator()

Returns an object for iterating instances of the member element.

ic_method

void Remove()

Deletes all occurrences of the element from its parent.

ic_method

void RemoveAt(int index)

Deletes the occurrence of the element specified by the index.

 

Properties


Name

Description

ic_property

int Count

Returns the count of elements.

ic_property

int EnumerationValue

Generated for enumeration types only. Sets or gets the element value using one of the constants generated for the possible values. Returns Invalid if the value does not match any of the enumerated values in the schema.

ic_property

bool Exists

Returns true if at least one element exists.

ic_property

MemberType First

Returns the first instance of the member element.

ic_property

Altova.Xml.Meta.Element Info

Returns an object for querying schema information (see Altova.Xml.Meta.Element ).

ic_property

MemberType Last

Returns the last instance of the member element.

ic_property

MemberType this[int index]

Returns the member element specified by the index.

ic_property

MemberType Value

Sets or gets the element content (only generated if element can have mixed or simple content).

© 2018-2024 Altova GmbH