Mixed types in XSD [closed]-Collection of common programming errors

Resolved by Union element using.

Consider below example: A sample XML defines calender dates.


  
    01
    Jan
    2013
  
  
    31
    01
    2013
  

Since Month element has both types Int and String .. It can be resolved like the way below XSD is written:



  
  
    
      
    
  

  
    
      
      
      
    
  

  
    
  
  
    
      
      
    
  
  
    
      
      
      
      
    
  

Originally posted 2013-11-09 19:43:30.