Sunday, 20 April 2014

What is XML
  • Extensible Markup Language (XML) is the universal language for data on the Web.
  • XML is a technology which allows us to create our own markup language.
  • XML documents are universally accepted as a standard way of representing information in platform and language independent manner.
  • XML is universal standard for information interchange.
  • XML documents can be created in any language and can be used in any language.
  • XML is self describing. is selfesc




What is DTD in XML
A Document Type Definition (DTD) defines the legal building blocks of an XML document. It defines rules for a specific type of document, including:
  • Names of elements, and how and where they can be used
  • The order of elements
  • Proper nesting and containment of elements
  • Element attributes
To apply a DTD to an XML document, you can:
  • Include the DTD's element definitions within the XML document itself.
  • Provide the DTD as a separate file, whose name you reference in the XML document. 
Difference between XML and HTML ,


HTML
XML
HTML is for displaying purpose.
whereas  XML is for data representation.
HTML is used to mark up text so it can be displayed to users.
XML is used to mark up data so it can be processed by computers.
HTML describes both structure (e.g. <p>, <h2>, <em>) and appearance (e.g. <br>, <font>, <i>)
XML describes only content, or “meaning”
HTML uses a fixed, unchangeable set of tags
In XML, you make up your own tags

0 comments:

Post a Comment

Subscribe to RSS Feed Follow me on Twitter!