XSD Element Not Null or Empty Constraint For Xml?

前端 未结 5 2216
栀梦
栀梦 2020-12-05 13:44

This is my sample XML Code:





5条回答
  •  不思量自难忘°
    2020-12-05 14:26

    @Kamal has given you basically right answer here. This is why - nillable always seems to cause problems. Effectively, you can consider nillable as meaning allow the xsi:nil attribute on this element. The XML Schema spec describes nillable as an out of band signal - it's basically used to indicate NULL to databases.

    What you want is an element that must be at least one character long as given by @Kamal

提交回复
热议问题