[xml] Making sequence entries option in .xsd files.


In the .xsd file for the DLMS Smart Grid protocol I find the following section:


By the protocol definition, the first 3 items in that sequence should be optional. The minOccurs="0" elements cause items 1 and 3 to be correctly treated as optional. However, the parser in libxml2 2.9.3 treats the second item as a required element. Shouldn't the default setting act in a similar way to a minOccurs="0" element, in making the item optional? Is it always necessary to have minOccurs="0" present when default="something" is present, in order to actually implement the default?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]