Topic : Introduction to XML:

XML:

XML Stands for Extensible Markup Language and it is a text-based Markup Language derived from Standard Generalized Markup Language (SGML) that was designed to store and transport data. XML Defines a set of rules for Encoding Documents in format that is both Human and Machine Readable. XML Tags are Not Predefined in XML, we need to define our own tags.



  • XML Usage:

    » XML Can work Behind the Scene to Simplify the Creation of HTML Documents for Large Web Sites.
    » XML Can be Used to Exchange the Information between Organizations and System.
    » XML Can be Used for Offloading and Reloading of Databases.
    » XML Can be used to store and Arrange the Data, which can customize Our Data Handling Needs.
    » XML Can Easily be Merged with Style sheets to create almost any desired output.
    » Virtually, any type of data can be expressed as an XML Document.



XML Does Not Do Anything:

XML is not a Programming Languages as it does not Perform any Computation or Algorithms. It is Usually Stored in a Simple Text file and is processed by special software that is Capable of Interpreting XML.

This is the Small message from InfoBrother to Learners, stored as XML.


<message>
    <to>Dear Learners</to>
    <from>InfoBrother</from>
    <title>Greeting</title>
    <body>Welcome to InfoBrother! Enjoy Your Learning.</body>
</message>


  • The XML Above is Quite Self-Descriptive:
    » It has Receiver Information.
    » It has Sender Information.
    » It has a Title.
    » It has a Message Body.


But still, the XML Above does not Do Anything. XML is Just Information wrapped in tags. Someone must write a piece of Software to send, receive, store and display it.



  • Different Between XML and HTML:

    » XML Was Designed to Carry data with Focus on what data is. while HTML was designed to display data with focus on How data looks.
    » XML tags are not predefined, while HTML tags are Predefined.
    » XML is about displaying Information while XML is about Describing Information.



















I Tried my Best to Provide you complete Information regarding this topic in very easy and conceptual way. but still if you have any Problem to understand this topic, or do you have any Questions, Feel Free to Ask Question. i'll do my best to Provide you what you need.

Sardar Omar.
InfoBrother





Advertising

Advertising