how xsd works with xml?
XML defines the syntax of elements and attributes for structuring data in a well-formed document. XSD (aka XML Schema), like DTD before, powers the eXtensibility in XML by enabling the user to define the vocabulary and grammar of the elements and attributes in a valid XML document.