XML Representation
A syntax tree of MData items can be represented in concrete syntax as Java code through the Non-virtualized Test API and in plain XML. An example of a data structure in XML is illustrated below.
<xatstcb1-copybook>
<wtypes>
<eyecatch1 type="Character" length="4" bytes="4" />
<chartype>
<char8 type="Character" length="8" bytes="8" />
<char16 type="Character" length="16" bytes="16" />
</chartype>
<eyecatch2 type="Character" length="4" bytes="4" />
<bintype>
<bin2 type="NumericBinary" length="4" bytes="2" signed="true" decimals="0" />
<bin4 type="NumericBinary" length="9" bytes="4" signed="true" decimals="0" />
<bin8 type="NumericBinary" length="18" bytes="8" signed="true" decimals="0" />
</bintype>
<eyecatch3 type="Character" length="4" bytes="4" />
<packtype>
<packed3 type="NumericPacked" length="3" bytes="2" signed="true" decimals="0" />
<packed6 type="NumericPacked" length="6" bytes="4" signed="true" decimals="0" />
<packed12 type="NumericPacked" length="12" bytes="7" signed="true" decimals="0" />
</packtype>
<eyecatch4 type="Character" length="4" bytes="4" />
<decimaltype>
<numdec5 type="NumericDisplay" length="5" bytes="5" signed="true" decimals="0" />
<numdec12 type="NumericDisplay" length="12" bytes="12" signed="true" decimals="0" />
<numdec18 type="NumericDisplay" length="18" bytes="18" signed="true" decimals="0" />
</decimaltype>
</wtypes>
<week-count>
<wcount type="NumericBinary" length="4" bytes="2" signed="true" decimals="0" count="4" />
</week-count>
</xatstcb1-copybook>
<wtypes>
<eyecatch1 type="Character" length="4" bytes="4" />
<chartype>
<char8 type="Character" length="8" bytes="8" />
<char16 type="Character" length="16" bytes="16" />
</chartype>
<eyecatch2 type="Character" length="4" bytes="4" />
<bintype>
<bin2 type="NumericBinary" length="4" bytes="2" signed="true" decimals="0" />
<bin4 type="NumericBinary" length="9" bytes="4" signed="true" decimals="0" />
<bin8 type="NumericBinary" length="18" bytes="8" signed="true" decimals="0" />
</bintype>
<eyecatch3 type="Character" length="4" bytes="4" />
<packtype>
<packed3 type="NumericPacked" length="3" bytes="2" signed="true" decimals="0" />
<packed6 type="NumericPacked" length="6" bytes="4" signed="true" decimals="0" />
<packed12 type="NumericPacked" length="12" bytes="7" signed="true" decimals="0" />
</packtype>
<eyecatch4 type="Character" length="4" bytes="4" />
<decimaltype>
<numdec5 type="NumericDisplay" length="5" bytes="5" signed="true" decimals="0" />
<numdec12 type="NumericDisplay" length="12" bytes="12" signed="true" decimals="0" />
<numdec18 type="NumericDisplay" length="18" bytes="18" signed="true" decimals="0" />
</decimaltype>
</wtypes>
<week-count>
<wcount type="NumericBinary" length="4" bytes="2" signed="true" decimals="0" count="4" />
</week-count>
</xatstcb1-copybook>
An example of a concrete data structure that conforms to the above metadata definition is shown below.
<xatstcb1-copybook>
<wtypes>
<eyecatch1 />
<chartype>
<char8>1</char8>
<char16 />
</chartype>
<eyecatch2 />
<bintype>
<bin2>+1234</bin2>
<bin4>112</bin4>
<bin8 />
</bintype>
<eyecatch3 />
<packtype>
<packed3 />
<packed6 />
<packed12 />
</packtype>
<eyecatch4 />
<decimaltype>
<numdec5 />
<numdec12 />
<numdec18 />
</decimaltype>
</wtypes>
<week-count>
<wcount />
<wcount />
<wcount />
<wcount />
</week-count>
</xatstcb1-copybook>
<wtypes>
<eyecatch1 />
<chartype>
<char8>1</char8>
<char16 />
</chartype>
<eyecatch2 />
<bintype>
<bin2>+1234</bin2>
<bin4>112</bin4>
<bin8 />
</bintype>
<eyecatch3 />
<packtype>
<packed3 />
<packed6 />
<packed12 />
</packtype>
<eyecatch4 />
<decimaltype>
<numdec5 />
<numdec12 />
<numdec18 />
</decimaltype>
</wtypes>
<week-count>
<wcount />
<wcount />
<wcount />
<wcount />
</week-count>
</xatstcb1-copybook>
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*