How to tell if XML element is marked as required in the XSD file

前端 未结 1 950
清歌不尽
清歌不尽 2021-02-04 03:33

I need to mark some elements as non required in the XSD schema. How do I go about figuring out which elements are marked as required, is there any particular flag I should be se

相关标签:
1条回答
  • 2021-02-04 04:15

    Yes.

    minOccurs="0" is what you need to add to an element as optional.
    Having no minOccurs attribute implies mandatory (since by default minOccurs="1")

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