Element-Mandatory Attribute declaration in XSD Schema:

后端 未结 4 1585
故里飘歌
故里飘歌 2021-02-19 15:46

I want to declare an element to be included in a complex type declaration, and the element has a mandatory attribute: \"option=MyOption\", but the value of the \"option\

4条回答
  •  故里飘歌
    2021-02-19 16:45

    Simply you can do it as the following

    
          
            
              
              
            
          
        
    

    by this code you enforce to insert a value on the xml tag and also the white space restriction will handle to remove the white space from the xml tag.

提交回复
热议问题