Tutoriallearn.com

Easy Learning


Home

Search Tutoriallearn.com :



XML Introduction

  • XML is called EXtensible Markup Language.
  • XML is used to transfer data from one location to other location.
  • User cerates owen tags in XML programming.
  • XML program must have a root element.
  • XML is case sensitive language.
  • XML tags must hava corresponding closing tags.
  • XML program provides a structure that can be easily processed by software.
  • Basically, XML program is used to transfer and store data. The data is further processed by the software.
  • XML program is saved with .xml extension.

Example

 

Explanation of the program

  • One root tag FacultyDetail is created.
  • Within root tag, one Faculty tag is created.
  • Tag consists of three tags FacultyName, Subject and City .
  • Remember, All tags are properly closed. It is mandator in the XML Program.
  • One important point, all tags are user defined.

Related to output of the program

  • Important to understand:
  • Baiscally, XML program is given as input file to a software for processing.
  • But you can run the XML program using web browser.
  • When you run the above program using web browser. Web broweser will show the program as it is.
  • This shows that browser do not know how to process your XML tags which are user defined.
  • Becuse of user defined tags, browser can not interpret user tags of the XML file.
  • To process your XML file, it is necessary that you develop a softwate that takes XML file as input and process the XML file.

Diferrance between HTML and XML

HTML
XML
1 It uses predefined tags . It uses user defined tags .
2 HTML is used to present the data on the web page. XML is used to transfer the data in structure way. XML is used to carry the data and to store the data.
3 HTML is case insensitive . XML is case sensitive .
4 Use of closing tags are optional in HTML Use of closing tags are mandatory in XML.
5 HTML is does not describe the data while present the data. XML is used to describe the data using tags defined by user.
6 HTML is used to design the web pages. XML is basically used to transfer the data to the application for processing of the data.
7 HTML uses CSS (Cascading Style Sheet) to present the data in decent and attractive way. XML can use XSL (Extensible Style Sheet) to present the data on the web page.


© Copyright 2016-2026 by tutoriallearn.com. All Rights Reserved.