Qt 5.6 | Qt XML Patterns | XML Schema Validation Example | valid_recipe.xml Example File

Qt 5.6.3 Reference Documentation

# valid_recipe.xml Example File

schema/files/valid_recipe.xml

      <recipe>
          <title>Cheese on Toast</title>
          <ingredient name="Bread" quantity="2" unit="slices"/>
          <ingredient name="Cheese" quantity="2" unit="slices"/>
          <time quantity="3" unit="minutes"/>
          <method>
              <step>1. Slice the bread and cheese.</step>
              <step>2. Grill one side of each slice of bread.</step>
              <step>3. Turn over the bread and place a slice of cheese on each piece.</step>
              <step>4. Grill until the cheese has started to melt.</step>
              <step>5. Serve and enjoy!</step>
          </method>
      </recipe>