Ask the Expert

What is the intent of the DTD?

Many articles I read about XML define the DTD to include actual field or element descriptions, (i.e. Address = street address). Others say it simply defines the paramaters of the file. Can you explain what the intent is of the DTD?

    Requires Free Membership to View

The DTD - as far as the parser is concerned, identifies what tags can occur in what order in the XML file. Higher levels of intepretation of the information, e.g. that "<address>" denotes "street address, "are often included in <!-- comments --> in the DTD but do not form part of the machine processable information.

This was first published in August 2002

There are Comments. Add yours.

TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to: