Altova MapForce 2025 Professional Edition

When code is generated from an XML schema, a class such as this one is created for each member element of a type. In the descriptions below, "MemberType" stands for the name of the member element itself.

 

Methods

Name

Description

Iterator<MemberType> all()

Returns an object for iterating instances of the member element.

MemberType append()

Creates a new element and appends it to its parent.

MemberType appendWithPrefix(string_type prefix)

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

unsigned int count()

Returns the count of elements.

int GetEnumerationValue()

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

bool exists()

Returns true if at least one element exists.

MemberType first()

Returns the first instance of the member element.

MemberType operator[](unsigned int index)

Returns the member element specified by the index.

altova::meta::Element info()

Returns an object for querying schema information (see altova::meta::Element).

MemberType last()

Returns the last instance of the member element.

void remove()

Deletes all occurrences of the element from its parent.

void removeAt(unsigned int index)

Deletes the occurrence of the element specified by the index.

void SetEnumerationValue(int)

Generated for enumeration types only. Pass one of the constants generated for the possible values to this method to set the value.

© 2018-2024 Altova GmbH