Hi
I am trying to define a schema (xsd) for the following xml.
The "Team" element has an attribute "desc" of type
String.
Within the "Team" element there are further elements ( one to many ) of type "Player".
The "Player" element has a "number" attributes of type String ( 1,2, etc ) and
holds a type String ( Gordan Banks, George Best, etc )
I used the
http://xmlgrid.net/xml2xsd.html to get the XSD for the XML :-
I than used
http://www.freeformatter.com/xml-validator-xsd.html to effectively validate the xsd and xml.
However, I am encountering the following error :-
Src-element.3: Element 'Player' Has Both A 'type' Attribute And A 'anonymous Type' Child. Only One Of These Is Allowed For An Element.
How can I address this error or is there alternative XSD definition that I can use which adheres to the XML.
Any suggestion would be appreciated. Thank you.
Regards
Pete.