| <?xml version="1.0" encoding="UTF-8"?> | 
| <ValidationRule xmlns="http://soap.sforce.com/2006/04/metadata"> | 
|     <fullName>testRule</fullName> | 
|     <active>true</active> | 
|     <errorConditionFormula>ISPICKVAL(Behavior__c , 'A') && ISBLANK(  Diagnosis__c )</errorConditionFormula> | 
|     <errorDisplayField>FaultNumber__c</errorDisplayField> | 
|     <errorMessage>使用状况为A时故障编号不能为空</errorMessage> | 
| </ValidationRule> |