XML DTDs Versus XML Schema


tony hart

An XML schema definition language is usually an instrument for creating schemas. A schema is actually a file ideal for defining the structure, contentand semantics related with an XML document. Many schema definition languages are available for use. The DTD (or Document Type Definition) language appeared to be popular with the XML community although has largely been obsolete by XSD (or XML Schema Definition) language.

XSD is suggested and also safeguarded via the web standards body, W3C. Contrary to DTD, XSD is actually itself developed in XML (that is why, extensible), consists of support for data-types as well as namespaces and it is usually considerably more in depth.

An XML schema defines the elements as well as attributes which go into the XML doc, their data-types and default values (if any). It specifies which elements are child elements, the order as well as the volume of them. Additionally it explains whether an element is empty or could include written text. An XML file isn't needed to possess a schema declaration however when one is made available it's going to be utilized to validate the XML document against all of the above needs.

An in depth xml schema tutorial can be found here, http://www.liquid-technologies.com/Tutorials/XmlSchemas/XsdTutorial_01.aspx, or you can easily likewise use an xml tool just like an xml editor to validate your xml file.

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question