Sie sind auf Seite 1von 4

1] WHAT IS XML? AND WHY IT IS USED.

XML is a software- and hardware-independent tool for storing and


transporting data.

XML stands for EXtensible Markup Language

XML is a markup language much like HTML

XML was designed to store and transport data

XML was designed to be self-descriptive

XML is a W3C Recommendation

USED OF XML :

XML is used in many aspects of web development.

XML is often used to separate data from presentation.

2]The Difference Between XML and HTML.


XML and HTML were designed with different goals:

XML was designed to carry data - with focus on what data is

HTML was designed to display data - with focus on how data looks

XML tags are not predefined like HTML tags are

HTML

XML

HTML is an abbreviation for HyperText Markup Language.

XML stands for eXtensible Markup Language.

HTML was designed to display data with focus on how data


looks.

XML was designed to be a software and hardware


independent tool used to transport and store data, with
focus on what data is.

HTML is a markup language itself.

XML provides a framework for defining markup languages.

HTML is a presentation language.

XML is neither a programming language nor a presentation


language.

HTML is case insensitive.

XML is case sensitive.

HTML is used for designing a web-page to be rendered on


the client side.

XML is used basically to transport data between the


application and the database.

HTML has it own predefined tags.

While what makes XML flexible is that custom tags can be


defined and the tags are invented by the author of the XML
document.

HTML is not strict if the user does not use the closing tags.

XML makes it mandatory for the user the close each tag
that has been used.

HTML does not preserve white space.

XML preserves white space.

HTML is about displaying data,hence static.

XML is about carrying information,hence dynamic.

3]WHAT IS SYNTAX OF XML?


XML documents must contain one root element that is the parent of all other elements:

<root>
<child>
<subchild>.....</subchild>
</child>
</root>
In this example <note> is the root element:

<?xml version="1.0" encoding="UTF-8"?>


<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>

4]WHAT IS STRUCTURE OF XML?


XML documents form a tree structure that starts at "the root" and branches to "the leaves".

XML Tree Structure

5]WHAT IS SYNTAX OF XML?


SYNTAX OF XML :
<root>
<child1>
<subchild1>.....</subchild1>
<subchild2>.....</subchild2>
</child1>
<child2>
<subchild1>.....</subchild1>
<subchild2>.....</subchild2>
</child2>
</root>

6]The Difference Between XML and HTML.

To learn HTML from basic visit our HTML Section before learning the difference between XML and HTML.

HTML
HTML focuses on How data looks?

XML
XML focuses on What data

HTML

XML
is ?

HTML is used to Display Information.

XML is used to Describe


Information.

HTML Tags are Predefined

XML Tags can be user Defined.

HTML is used to Design Web pages.

XML is designed to Carry data or


to Create new Scripting
Language.

HTML is Case Insensitive

XML is case Sensitive.

HTML does not preserve white space

XML preserves White Space

HTML is not Strict.

XML is String as Strict.

HTML is presentation language

XML neither a programming


language nor a presentation
language

Das könnte Ihnen auch gefallen