Q1. How do you restrict an element in XSD? A1. With “xs:restriction”. In the XSD shown below, the “AddressType” is restricted to “Mailing”, “Office”, and “Home”. … Read more ›...
Q1. How do you restrict an element in XSD? A1. With “xs:restriction”. In the XSD shown below, the “AddressType” is restricted to “Mailing”, “Office”, and “Home”. … Read more ›...
#1. Reuse by defining a “ComplexType”. EmployeeType is reused. Once JAXB annotated classes are created XML output: #2. Inheritance reuse where sub types can define additional elements like “salary”, …...