How to specify in an XML schema that either one of two fields must be present?

后端 未结 2 673
猫巷女王i
猫巷女王i 2021-02-13 01:49

I want to specify that either fieldname or freetext must always be present in XML files that apply to this XSD. Is there a way to do that?



        
2条回答
  •  伪装坚强ぢ
    2021-02-13 02:09

    So, you want either fieldname or freetext and not both? or maybe both? and then dbtablename optionally?

    Here is 1 or 2 of the elements:

    
        
        
        
    
    

    Is this what you want? or did you want dbtablename to be separate?

提交回复
热议问题