XSD date format overriding

后端 未结 2 1016
无人共我
无人共我 2021-01-03 00:47

I am defining an XSD. I need to define an element which takes date in format yyyymmdd. How can I define a restriction in XSD to only accept this format?

2条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-03 01:23

    If you want the format of MM/DD/YYYY in xml then this code can help you for this format

    
       
          
             
         
          
       
    
    

提交回复
热议问题