Question: why we use xsd in xml?
Answer: XSD (XML Schema Definition) is a World Wide Web Consortium (W3C) recommendation that specifies how to formally describe the elements in an Extensible Markup Language (XML) document. ... XSD can also be used for generating XML documents that can be treated as programming objects.