private void AddOrder()
{
// additional order can be add on by changing the setOrder and addOrder
switch (_GroupDef._Order)
{
case SchemaOrderSequence:
_contentValidator.AddSequence();
break;
case SchemaOrderChoice:
case SchemaOrderMany:
_contentValidator.AddChoice();
break;
default:
case SchemaOrderAll:
throw new XmlException(SR.Xml_UnexpectedToken, "NAME");
}
}