What's the meaning of ? Does SubParameter type included all the information of MainParameter.type content? and attribute MyIndex attached.
<xsd:complexType name="SubParameter.type">
<xsd:complexContent>
<xsd:extension base="MainParameter.type">
<xsd:attribute name="MyIndex" type="xsd:nonNegativeInteger"/>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>
Thank you.
xsd extension base element with attributes. 0. XSD Restrictions/Facets for XML with element with multiple enumeration.
What Is an XSD File? A file with the XSD file extension is most likely an XML Schema file; a text-based file format that defines validation rules for an XML file and explains the XML form. Since they are schema files, they provide a model for something else, XML files in this case.
<xs:complexType> <xs:sequence> <xs:element name="firstname" type="xs:string"/>
You are declaring a type that extends MainParameter.type.
In other words, your new type "SubParameter.type" will have all the attributes and structure of MainParameter but with an additional MyIndex attribute.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With