If I have an xml document, for example:
<colors>
<color1>1452</color1>
<color2></color2>
<color3></color3>
</colors>
I want to define in an XML schema, that the color1 element must contain a value of type int, be non null, and non empty. So the above example would be valid, but if color1 was empty like color2 and color3, it would fail. I've searched around but cannot seem to find a clean way to require that an element be populated with a value. Am I missing something really obvious?