[YourSchemaType].MemberElement
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 | |
---|---|---|
MemberType Append() | Creates a new element and appends it to its parent. | |
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. | |
MemberType At(int index) | Returns the member element specified by the index. | |
System.Collections.IEnumerator GetEnumerator() | Returns an object for iterating instances of the member element. | |
void Remove() | Deletes all occurrences of the element from its parent. | |
void RemoveAt(int index) | Deletes the occurrence of the element specified by the index. |
Properties
Name | Description | |
---|---|---|
int Count | Returns the count of elements. | |
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. | |
bool Exists | Returns true if at least one element exists. | |
MemberType First | Returns the first instance of the member element. | |
Altova.Xml.Meta.Element Info | Returns an object for querying schema information (see Altova.Xml.Meta.Element ). | |
MemberType Last | Returns the last instance of the member element. | |
MemberType this[int index] | Returns the member element specified by the index. | |
MemberType Value | Sets or gets the element content (only generated if element can have mixed or simple content). |