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
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
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
- XML can also be used to store the data permanently like database
- XML can be used configure web resources of any web based applications
- XML files can also be used to given instruction to an electronic devices
- Using XML we can also create our own markup language
- XML can be used to transfer the data between un compactable languages
XML Standard rules
- Every XML document must contain exactly one root tag
- Every XML tag must contain its starting tag and followed by its ending tag
- XML tags must follow the case sensitive
- XML tags may contain child elements or attributes.
- Attribute must be specified using “ “ (or) ‘ ‘.
- XML document must be nested
- Element name can contain combination of alphabets and digits.
- It must not begin with any digit.
- It must not contain any spaces
- It must not contain any special characters.