What is DTD for an XML document

A DTD is the Document Type Definition for an XML document. It defines the way in which the elements in an XML document should look like. The type of data that should be present in the nodes, the number of child nodes that should be present, the attributes that should be used for an element are all defined in a DTD file.

_______________________________________________


_______________________________________________

Based on this the XML document is validated. If an XML document is created based on this rule then it is said to be a valid document. All XML documents are validated against a DTD or a schema.

A schema is an advanced version of a DTD. Schemas are used now-a-days instead of DTD as they have more flexibility in validating the XML documents.

Signs like '+', '*', and '?' are used to define the number of child nodes that should be present within an element. The elements are defined using the ELEMENT keyword. The attributes are defined using the ATTLIST keyword. The type of data is either CDATA or PCDATA.

JSF 2.0 Views: Hello Facelets, Goodbye JSP (Developer.com)
JavaServer Faces (JSF) is a Java component UI framework for building dynamic pages for a web application. JSF technology provides an API for creating, managing, and handling UI components and a tag library for using components within a web page.



FREE Subscription

Subscribe to our mailing list and receive new articles
through email. Keep yourself updated with latest
developments in the industry.

Name:
Email:

Note : We never rent, trade, or sell my email lists to
anyone. We assure that your privacy is respected
and protected.

_______________________________________

Recommended XML Books

cover
cover
cover
cover
cover
cover






 

 

FREE Subscription

Stay Current With the Latest Technology Developments Realted to XML. Signup for Our Newsletter and Receive New Articles Through Email.

Name:

Email:

Note : We never rent, trade, or sell our email lists to anyone. We assure that your privacy is respected and protected.

 

 

Add to My Yahoo!


New XML Books Titles - Best Seller's @ Amazon.com

Visit XML Training Material Guide Homepage

Technology helps engage students - how do classroom instruction and social dynamics change when the classroom is completely dependant on modern technology?

Cisco CCNA Certification Video Tutorial Guide - Learn How to Pass the Cisco CCNA 640-802 Exam... Guaranteed!

Train Signal Computer Training