Skip to main content

Posts

Showing posts with the label XML

Difference between HTML and XML

You need to understand that you will not use XML for replacing HTML. Both XML and HTML have been designed for different goals which can be summarized as follows: a. XML is designed specifically for describing and structuring the data where as HTML is used for formatting and displaying the data. b. XML is focused on defining data with its attributes. It basically tells what data is all about. HTML is focused on presentation of data and is used to customize looks of data. c. In case of HTML Document tags to be used and the structure of the documents are predefined. While using HTML you can only use tags which are pre-defined in the HTML standards. In case of XML you can define your own tags and develop your own document structure. d. An XML document is saved with an extension .XML whereas an HTML document is saved as .HTML. E.g. The following example is an e-mail from Ram to Shyam stored as XML < email > < to > Ram </to > < from > Shyam ...

CHARACTERISTICS OF XML

XML stands for ‘Extensible Markup Language’. It is a general-purpose specification which is commonly used for creating custom markup languages. It is an extensible language as it provides its users an ability to define their own elements. Thus it enables users to create custom tags that suit their requirement. XML has been primarily developed to information systems share their structured data online. It can be used to encode documents as well as to serialize data so that it can be efficiently used. Some of the features of XML have been summarized below: 1. XML can be understood as an extensible language which is freely available. 2. XML tags are user made tags. They are not predefined tags. In case of HTML predefined tags are used (like < p >, < h1 > etc.). While using XML users can define custom tags and develop document structure as per their requirement. 3. XML is not a replacement for HTML. It is actually a complement to HTML. Both scripting languages have ...

Introduction to XML

Dear Students In this an subsequent posts we will read about XML. We will be covering following topics in XML. • List the applications and advantages of XML • Create well-formed and valid XML documents. • Make a XHTML document. • Create XM DTD • Use XSL for transforming XML data and display it in a Web browser. • Apply data binding and the Document Object Model for displaying dynamic XML data in a Web browser.