Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

XML DTDs Versus XML Schema

18 views
Skip to first unread message

tony hart

unread,
Nov 26, 2014, 1:44:03 PM11/26/14
to
An XML schema definition language is usually an instrument for creating schemas. A schema is actually a file ideal for defining the structure, content and 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.
0 new messages