[Solved] Validation of a XML with same Tag name for multiple children


Still not completly satisfied with the question but let me give it a shot.

First let me point out that a default value is usually a single value.
This value is usually set automatically when you add a new row or is set to the value when you don’t assign a value to that field. So you rather need a column named ValidValues.

Now if you want to check for each value in this column:

string[] validValues = /*whereever you get the field from*/.Split('|');
bool valid = validValues.Contains(/*whatever value you want to check*/);

5

solved Validation of a XML with same Tag name for multiple children