What is/are purpose(s) of XML Schema?
-
Document Generation
-
Code Generation
-
Both 1 and 2
-
None of the above
C
Correct answer
Explanation
XML Schema serves two key purposes: document generation (creating valid XML instances from the schema definition) and code generation (generating programming language classes or data bindings from the schema). Tools use schemas to produce XML documents or generate code in languages like Java, C#, or Python that conform to the schema structure.