Thursday, 26 May 2016

What is XML ?

XML: XML stands for extensible markup language.  This is designed to store the data and describing the data.

XML provides an environment where we can create cross platform compactable files.  Cross platform compatibility means, it is not specify to any operating system, software or hardware.

XML is standard set of rules, which is given by W3C. Which is used to create tag based data. XML is called mother language because using XML we can create our own markup languages. EX: MML, VML, WML, XHTML

Differences between XML and HTML

HTML

1.     HTML is used to create the web pages
2.       HTML contains predefined tags
3.       HTML tags not case sensitive
4.       HTML is an error free language  that means it will display the data or will not display the data on   browser
5.       HTML supports both proper nesting and in proper nesting
6.       HTML providing styles for the data

XML

1.       XML used to store and describe the data. 
2.       XML contains only user defined tags 
3.       XML tags are case sensitive 
4.       XML is not an error free language that means it will display the error information on the browser
5.       XML supports only proper nesting. 
6.       XML providing the structure for the data. 

Advantages
 
  1. XML can also be used to  store the  data permanently like database
  2. XML can be used configure web resources of any web based applications
  3. XML files can also be used to given instruction to an electronic devices
  4. Using XML we can also create our own markup language
  5. XML can be used to transfer the data between un compactable languages

  
XML  Standard rules

  1. Every XML document must contain exactly one root tag
  2. Every XML tag must contain its starting tag and followed by its ending tag
  3. XML tags must  follow the case sensitive
  4. XML tags may contain child elements or attributes.
  5. Attribute must be specified using “ “ (or)  ‘ ‘.
  6. XML document must be nested
  7. Element name can contain combination of alphabets and digits.
  8. It must not begin with any digit.
  9. It must not contain any spaces
  10. It must not contain any special characters.

No comments:

Post a Comment