Getting and setting the specific type of an Mb element

Two methods are provided for handling the specific type of an Mb syntax element.

About this task

The following methods are available:

  • getSpecificType
  • setSpecificType

Use these methods to access or set the specific type of an XML element. For example, to update the current value:

Procedure

  1. Call getSpecificType on the syntax element.

    The getSpecificType method does not take any parameters, but returns the specific type of the element as an int value.

  2. Call setSpecificType on the syntax element.

    The setSpecificType method takes one parameter of the type int, which is the specific type that you want the Mb element to be. This method has no return value.

Results

Specific type values for the XML and MRM parsers are listed in XML, MRM, and XMLNSC parser constants.