1 year ago

#386353

test-img

coutier eric

Prohibit addtionnal attributes in xsd

Is it possible to prohibit attributes other than those provided ?

Example : for node person, I define nameattribute only. Is it possible to prohibit others attributes to be inserted in the xml to be checked ?

<person name="smith" size="15" foo="bar">
</person>

Trigger an error on sizeand foo because other attributes than name are not allowed.

xml

xsd

0 Answers

Your Answer

Accepted video resources