How to make an element in XML schema optional?

后端 未结 2 1759
眼角桃花
眼角桃花 2020-12-12 21:51

So I got this XML schema:

 

        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-12 22:20

    Try this

    
    

    if you want 0 or 1 "description" elements, Or

    
    

    if you want 0 to infinity number of "description" elements.

提交回复
热议问题