Mobile SDK > Disconnected mobile application reference > SurveyQuestionXMLMDSC reference > SurveyQuestionXMLMDSC examples > Subheadings example
 
Subheadings example
This example uses subheadings.
Metadata script: Sublist method 1
Q1 "Q1" categorical
  {
    List1 "Sub heading 1"
    { a "a", b "b", c "c" },
    List2 "Sub heading 2"
    { x "x", y "y", z "z" }
  };
Metadata script: Sublist method 2
List1 "Sub heading 1" categorical
  { a "a", b "b", c "c" };
List2 "Sub heading 2"
  { x "x", y "y", z "z" };
Q1 "Q1" categorical
  {
    use List1 sublist,
    use List2 sublist
  };
Rendered
XML
<Question QuestionFullName="Q1" QuestionDataType="Categorical">
  <Category FullName="sublist1" IsSubList="True" Value="38"
            CategoryType="CategoryList">
    <Category Name="a" Value="35">...</Category>
    <Category Name="b" Value="36">...</Category>
    <Category Name="c" Value="37">...</Category>
  </Category>
  <Category Name="sublist2" DisplayAsSublist="True" Value="43"
            CategoryType="CategoryList">
    <Category Name="x" Value="32">...</Category>
    <Category Name="y" Value="33">...</Category>
    <Category Name="z" Value="34">...</Category>
  </Category>
</Question>
See also
SurveyQuestionXMLMDSC examples