example

Top  Previous  Next

- example <value>

 

Used as an alternative way to add an example to a container, a value or an attribute. Normally you would add an example to the schema by supplying the example as content to the element. However, sometimes it's easier to just add it using the example attribute.

 

The Schema

 

<schema packageScope="com.wickedfastsolutions.demo.domain">
    <recipe>
        <name>Pumpkin Pie</name>
        <ingredients>
            <ingredient>Milk</ingredient>
            <qty example="14"></qty>
        </ingredients>
    </recipe>
</schema>