Making an element mandatory.. How do?

cjard

Well-known member
Joined
Apr 25, 2006
Messages
7,081
Programming Experience
10+
My xml document has some elements that are mandatory, but it is perfectly possible for the coder not to submit these. How can I collect a list of all the mandatory elements that have not been supplied, in order to return to the developer using my library?

I'm presuming that I make the XML, then validate it against an XSD for minoccurs rules.. ?
 
The rules are so complex that I've decided I'll write a Validate() that can be called at any time and will be called by default by my xml factory before serialization.. :)
 
Back
Top