none
Difference Between XML Schemas and XSD(XML Schema defenition)

    Question

  • Hi All

    In relation to BizTalk.. What is the deference between 

    1. XML
    2. XML Schemas
    3. And XSD(XML Schema definition)

    Thanks


    Lesibana Chokoe

    Sunday, September 10, 2017 4:21 PM

All replies

  • Hi Lesibana,

    I suggest you read the MSDN documentation for the same. It explains the difference very nicely. You can get the documentation > What is XML Schema (XSD


    Mandar Dharmadhikari

    Monday, September 11, 2017 4:43 AM
    Moderator
  • Hi Lesibana,

    Thank you for posting on MSDN forum,

    1. XML

    XML is a meta-markup language, a set of rules for creating semantic tags used to describe data. An XML element is made up of a start tag, an end tag, and data in between. The start and end tags describe the data within the tags, which is considered the value of the element. For example, the following XML element is a <director> element with the value Matthew Dunn.
    <director>Matthew Dunn</director>
    The element name <director> allows you to mark up the value Matthew Dunn semantically, so you can differentiate that particular bit of data from another, similar bit of data. For example, there might be another element with the value Matthew Dunn:
    <actor>Matthew Dunn</actor>
    Because each element has a different tag name, you can easily tell that one element refers to Matthew Dunn, the director, while the other refers to Matthew Dunn, the actor. If there were no way to mark up the data semantically, having two elements with the same value might cause confusion.
    In addition, XML tags are case-sensitive, so the following are each a different element.
    <City> <CITY> <city>

    Refer MSDN page: Author XML Elements

    2. XML Schemas

    An XML Schema is an XML-based syntax for defining how an XML document is marked up. XML Schema is a schema specification recommended by Microsoft and it has many advantages over document type definition (DTD), the initial schema specification for defining an XML model. DTDs have many drawbacks, including the use of non-XML syntax, no support for datatyping, and non-extensibility. For example, DTDs do not allow you to define element content as anything other than another element or a string. For more information about DTDs, see the World Wide Web Consortium (W3C) XML Recommendation. XML Schema improves upon DTDs in several ways, including the use of XML syntax, and support for datatyping and namespaces. For example, an XML Schema allows you to specify an element as an integer, a float, a Boolean, a URL, and so on.
    Microsoft® XML Core Services (MSXML) can validate an XML document with both a DTD and an XML Schema.

    Refer MSDN page: Author XML Schemas

    3. And XSD(XML Schema definition)

    XML Schema Definition (XSD) language is the current standard schema language for all XML documents and data.

    Refer MSDN page: What is XML Schema (XSD)?

    Thanks

    Kamlesh

    Monday, September 11, 2017 8:47 AM
    Moderator