Document Structure Description, or DSD, is an XML schema language, for describing valid XML documents. It's an alternative to DTD or XML Schema. XML Schema, published as a W3C Recommendation in May 2001, is one of several XML schema languages. ... The Extensible Markup Language (XML) is a W3C-recommended general-purpose markup language for creating special-purpose markup languages. ... DTD is an acronym that can stand for: Document Type Definition, used in XML programming Delta Tau Delta, a US-based college fraternity This is a disambiguation page — a navigational aid which lists other pages that might otherwise share the same title. ... XML Schema, published as a W3C Recommendation in May 2001, is one of several XML schema languages. ...
This says that element named "foo" in the XML namespace "http://example.com" may have two attributes, named "first" and "second". A "foo" element may not have any character data. It must contain one subelement, named "bar", also in the "http://example.com" namespace. A "bar" element is not allowed any attributes, character data or subelements.
One XML document that would be valid under the above DSD would be:
A Document Type Definition (DTD for short) is a set of declarations that conform to a particular markup syntax and that describe a class, or "type", of SGML or XMLdocuments, in terms of constraints on the structure of those documents.
A DTD may also declare default attribute values, named entities and their replacement text, and other constructs that are not always required to establish documentstructure, but that may affect the interpretation of some documents.
A DTD is associated with a particular document via a Document Type Declaration, which is a bit of markup that appears near the start of the associated document.