Meta
Categories
Category Archives: xml
XML Schema: Create Variable Content Container Using Abstract Type
Implementation * Define an abstract base type (PublicationType) to include common elements: <xsd:complexType name="PublicationType" abstract="true"> <xsd:sequence> <xsd:element name="Title" type="xsd:string"/> <xsd:element name="Author" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> <xsd:element name="Date" type="xsd:gYear"/> </xsd:sequence> </xsd:complexType> * Define concrete types(BookType, MagazineType) to extend abstract type <xsd:complexType name="BookType"> … Continue reading
Posted in xml
Comments Off on XML Schema: Create Variable Content Container Using Abstract Type