XML sample |
Top Previous Next |
<pdroot> <ValidationRules> <ValidationRule> <Expression>Null(AccidentFormDate.value)</Expression> <Explanation>Date is blank</Explanation> <Level>Error</Level> <RelatedFields/> </ValidationRule> <ValidationRule> <Expression>Null(AccidentFormTime.value) </Expression> <Explanation>Time is blank</Explanation> <Level>Error</Level> <RelatedFields/> </ValidationRule> <ValidationRule> <Expression>NumberOfFatalities.value .GT. 3 </Expression> <Explanation>Number of fatalities is greater than 3</Explanation> <Level>Warning</Level> <RelatedFields/> </ValidationRule> <ValidationRule> <Expression>Null(Node.value) </Expression> <Explanation>Node is blank</Explanation> <Level>Error</Level> <RelatedFields/> </ValidationRule> <ValidationRule> <Expression>(FormUnit1Type.value .EQ. 4) .AND. (AppOvertakeTurn.value .NEQ. 3)
</Expression> <Explanation>C. App/Overtake should be N/A when unit 1 is Pedestrian</Explanation> <Level>Warning</Level> <RelatedFields/> </ValidationRule> <ValidationRule> <Expression>NumberInjured.value .GT. 5
</Expression> <Explanation>Number of injuries is greater than 5</Explanation> <Level>Warning</Level> <RelatedFields/> </ValidationRule> <ValidationRule> <Expression>Form1SpeedLimit.value .GT. 50 </Expression> <Explanation>Speed limit for Unit 1 is greater than 50</Explanation> <Level>Warning</Level> <RelatedFields/> </ValidationRule> <ValidationRule> <Expression>Form2SpeedLimit.value .GT. 50 </Expression> <Explanation>Speed limit for Unit 2 is greater than 50</Explanation> <Level>Warning</Level> <RelatedFields/> </ValidationRule> <ValidationRule> <Expression>Form1Speed.value .GT. 60 </Expression> <Explanation>The speed for Unit 1 is greater than 60</Explanation> <Level>Warning</Level> <RelatedFields/> </ValidationRule> <ValidationRule> <Expression>Form2Speed.value .GT. 60 </Expression> <Explanation>The speed for Unit 2 is greater than 60</Explanation> <Level>Warning</Level> <RelatedFields/> </ValidationRule> <ValidationRule> <Expression>(FormUnit1Type.value .NEQ. 4) .AND. (IsNull(FormPed1Action.Value) .EQ. FALSE) </Expression> <Explanation>The Pedestrian 1 Act field has a value, but Unit 1 is not a pedestrian</Explanation> <Level>Warning</Level> <RelatedFields/> </ValidationRule> <ValidationRule> <Expression>(FormUnit2Type.value .NEQ. 4) .AND. (IsNull(FormPed2Action.Value) .EQ. FALSE) </Expression> <Explanation>The Pedestrian 2 Act field has a value, but Unit 2 is not a pedestrian</Explanation> <Level>Warning</Level> <RelatedFields/> </ValidationRule> <ValidationRule> <Expression>Form1Age.value .GT. 95
</Expression> <Explanation>Unit 1 age is greater than 95</Explanation> <Level>Warning</Level> <RelatedFields/> </ValidationRule> <ValidationRule> <Expression>Form2Age.value .GT. 95
</Expression> <Explanation>Unit 2 age is greater than 95</Explanation> <Level>Warning</Level> <RelatedFields/> </ValidationRule> </ValidationRules> <Settings/> </pdroot>
|