Make an xsd element mandatory

后端 未结 1 2018
无人及你
无人及你 2021-02-18 22:41

I have an xml file that I am trying to validate against an xsd file. Works fine. I want to modify the xsd to make an element value mandatory. How do I do this so when I validate

1条回答
  •  借酒劲吻你
    2021-02-18 23:05

    Mandatory

    Attribute minOccurs Optional. Specifies the minimum number of times the any element can occur in the parent element. The value can be any number >= 0. Default value is 1. (By default is mandatory)

    
    
    
    
    

    Not Empty

    
      
         
           
         
      
    
    

    0 讨论(0)
提交回复
热议问题