For example,
the Read XML activity uses an XML Schema to
define the output parameter of the activity. In the Configure task
of the Checklist for the Read XML activity,
select an XML variable that defines the node of the XML Schema to
use the output parameter. Using example XML Schema shown in the preceding
figure, a variable based on the <shape> element
can be used to define the node of the XML Schema to use as the output
parameter of the Read XML activity. Since the
derived type for the <shape> element is not selected,
only the child element (named color) of the
base type are displayed in the From Activity pane as shown in the
following figure:
Note that the child elements of the derived types are not listed in the mapping pane. In this example, the child element of circle which is named diameter is not listed, nor are the child elements of rectangle which are named width and length.
In this example, the circle derived type is selected, so the XML data expected for this node during run time is of type circle as shown in the XML instance document displayed at the top of this page.
In addition
to the child elements of the base type, the child elements of the
derived type show in the mapping panes. In this example, the child
element named diameter is displayed with the child element named color (inherited
from the base type) in the From Activity pane of the Read
XML activity as shown in the following figure: