Subject: | element name of error message is not correct |
Hi, following XML :
<A>
<B/>
</A>
with the following schema :
<xs:schema xmlns:xs="mydoc">
<xs:element name="A">
<xs:complexType>
<xs:sequence>
<xs:element name="B" />
<xs:element name="C" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
generates following error :
File fail validation Element contents do not match content model '(B,C)'.
Instead of
File fail validation : Element "A" does not match content model '(B,C)' .
"contents" name should be hard-coded somewhere.
Without the real element name, such a message is almost useless on big xml files.
regards,
Jean Flouret