Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 400043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T16:54:25+00:00 2026-05-12T16:54:25+00:00

I have googled this question, but I do not understand clearly what is an

  • 0

I have googled this question, but I do not understand clearly what is an XML schema and DTD (document type definition), and why the XML schema is more powerful compared to DTD.

Any guidance would be highly appreciated.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T16:54:26+00:00Added an answer on May 12, 2026 at 4:54 pm

    From the Differences Between DTDs and Schema section of the Converting a DTD into a Schema article:

    The critical difference between DTDs
    and XML Schema is that XML Schema
    utilize an XML-based syntax, whereas
    DTDs have a unique syntax held over
    from SGML DTDs. Although DTDs are
    often criticized because of this need
    to learn a new syntax, the syntax
    itself is quite terse. The opposite is
    true for XML Schema, which are
    verbose, but also make use of tags and
    XML so that authors of XML should find
    the syntax of XML Schema less
    intimidating.

    The goal of DTDs was to retain a level
    of compatibility with SGML for
    applications that might want to
    convert SGML DTDs into XML DTDs.
    However, in keeping with one of the
    goals of XML, “terseness in XML markup
    is of minimal importance,” there is no
    real concern with keeping the syntax
    brief.

    […]

    So what are some of the other differences which might be especially important when we are converting a DTD? Let’s take a look.

    Typing

    The most significant difference between DTDs and XML Schema is the capability to create and use datatypes in Schema in conjunction with element and attribute declarations. In fact, it’s such an important difference that one half of the XML Schema Recommendation is devoted to datatyping and XML Schema. We cover datatypes in detail in Part III of this book, “XML Schema Datatypes.”

    […]

    Occurrence Constraints

    Another area where DTDs and Schema differ significantly is with occurrence constraints. If you recall from our previous examples in Chapter 2, “Schema Structure” (or your own work with DTDs), there are three symbols that you can use to limit the number of occurrences of an element: *, + and ?.

    […]

    Enumerations

    So, let’s say we had a element, and we wanted to be able to define a size attribute for the shirt, which allowed users to choose a size: small, medium, or large. Our DTD would look like this:

    <!ELEMENT item (shirt)>
    <!ELEMENT shirt (#PCDATA)>
    <!ATTLIST shirt
        size_value (small | medium | large)>
    

    […]

    But what if we wanted size to be an element? We can’t do that with a DTD. DTDs do not provide for enumerations in an element’s text content. However, because of datatypes with Schema, when we declared the enumeration in the preceding example, we actually created a simpleType called size_values which we can now use with an element:

    <xs:element name="size" type="size_value">
    

    […]

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know this question can be answered by searching in google. But I have
I am new to Emacs. I have googled this but no good answer there.
I am sure I am just missing something. But I have googled this for
Ok I am still learning this... I have Googled and done some research but
Yes, I have googled this question and even referred to my textbook (PHP by
Before answering this question, understand that I am not asking how to create my
I have asked this question in Radiant CMS google group, but no one answered
This seems like a basic question but i have doubts maybe because i am
This is not a homework question, but rather my intention to know if this
I have a question about this script I found and used. It works but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.