Question: why we need xsd file?
Answer: An XSD file is a file used to define what elements and attributes may appear in an XML document. It also defines the relationship of the elements and what data may be stored in them. XSD files are written in the W3C XML Schema language.