Generated XML Encode Functions

Note

As of version 6.5.1, this section applies to XER encoding rules. See the Overview section above.

XML C encode and decode functions allow data in a populated variable to be formatted into an XML document.

For each ASN.1 production defined in the ASN.1 source file, a C XML encode function is generated. In the case of XML schema, a C encode function is generated for each type and global element declaration. This function will convert a populated C variable of the given type into an XML encoded message (i.e. an XML document).

If C++ code generation is specified, a control class is generated that contains an Encode method that wraps this function. This function is invoked through the class interface to encode an ASN.1 message into the variable referenced in the msgData component of the class.