I have the following question...
I have an element in my XML document that I want to enforce in my XSD... no big problem.. I just do a minOccurs of 1... more or less thats it... this guarentees that the element is required for the XML document to be considered valid.... my question though is this is all this requires (for the element tags to be there)... is there a way that I can enforce through the XSD that this already required element have a value within the element tags? i.e. right now as it stands say I have something like
then through the XSD I force that there must always be one LastName and one FirstName tag for each Person element... no a problem... but is there a way in the XSD to take this a step further... by saying not only is one and only one occurence of these elements(FirstName and LastName) required, but that they must contain a value... so that the following would fail the XSD validation...
Null is my more important priority to test for (as seen in FirstName element above) empty tags with "whitespace" is then a secondary concern as seen in the LastName element above...
Any help is greatly appreciated... Perhaps if you can you could provide just a simple example of how to do this... that is test for NULL values...