What is xml

Eman36 775 views 15 slides Jun 19, 2014
Slide 1
Slide 1 of 15
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15

About This Presentation

what is XML. A brief disruption with references.


Slide Content

Introduction to XML
(Bonus Assignment)
Aneesa Rahman(1005)
BSIT-Mor-2
nd
sems
University of Education

What is XML
 XML stand for Extensible Markup language
 It is a markup language much like HTML
 It was designed to carry data not to display
data
 XML tags are not predefined you must design
your own.
 XML is designed to be self descriptive
 XML is a w3c recommendation

HTML vs. XML
XML is not a replacement of HTML
XML and HTML are designed for different goals
XML is designed to transport and store data with
focus on what data is.
HTML is designed to display data with focus on what
data looks.
 HTML is about displaying information
XML is about carrying information.

Comparison….
XML
Extensible set of tags
Content oriented
Standard data
infrastructure
Allow multiple output
forms
HTML
Fixed set of tags
Presentation oriented
No data validation
capabilities
Single presentation

Tree of XML
Xml document must contain a root element called parent
Than child and sub child
These names show relationship between them.
As
<root>
<child>
<sub child>……….</sub child>
</child>
</root>
All elements can have text and attributes just like HTML.

Example
<note>
<to>Sara</to>
<from>Aliya</from>
<heading>Reminder</heading>
<message>Don’t forget my birthday party this
weekend</message>
</note>

Main Features of XML
XML files are text files which can be manage by
another text editor
XML is very simple because is has less than 10
syntax rules.
XML is extensible because it only specify the
structural rule of tags. No specification on tags
themselves.
It is based on international standard

Advantages of XML
XML provides the basic syntax that can be
use to share information between deferent
kinds of computers.
It provides a gateway for communication
between all applications even application on
wildly different computers.
 XML is heavily use for document storage
and processing both online and offline.
It can be updated incrementally.
It is platform-independent, thus relatively
immune to change in technology.

Advantages of XML

It can represent common computer science data
structures: records, lists and trees
It supports Unicode, allowing almost any information
in any written human language to be communicated.
With XML, your data can be available to all kinds of
reading machine (handheld computers, voice
machines, news feeds etc..)

How can XML be used?
XML is used in many aspects of web
development, often to simplify and share
data.
A lot of new Internet languages are created with XML.
Here are some examples:
XHTML
WSDL for describing available web services
WAP and WML as markup languages for handheld
devices
RSS languages for news feeds
RDF and OWL for describing resources and
ontology
SMIL for describing multimedia for the web

Technologies of XML
XQuery (XML Query Language)
An XML based language for queering xml data.
 DTD (Document Type Definition)
A standard for defining the legal elements in an XML document.
XSD (XML Schema)
An XML-based alternative querying XML data to DTD.
SOAP (Simple Object Access Protocol)
An XML-based protocol to let applications exchange information
over HTTP.
WSDL (Web Services Description Language)
An XML-based language for describing web services.
RDF (Resource Description Framework)
An XML-based language for describing web resources.
RSS (Really Simple Syndication)
A format for syndicating news and the content of news-like sites.
SVG (Scalable Vector Graphics)
Defines graphics in XML format.

Versions
There are two current versions of XML:
1.(XML 1.0) It was initially defined in 1998. it has
undergone miner version since than. it is widely
implicated and still recommended for general use.
2.(XML 1.1) published on Feb. 4, 2004. it contains
many features that are intended to make xml easy
in many cases.
There has been discussion for XML 2.0.

Some XML Markup Languages
Atom (standard)

Attention Profiling Mark-up Language
Channel Definition Format
Document Structure Description
FleXML
Java Speech Markup Language
Music Markup Language
Vector Markup Language etc…

References
http://www.w3schools.com/xml/xml_whatis.asp
http://en.wikipedia.org/wiki/XML
http://www.herongyang.com/XML/Introduction-Main-Features-of-XML.html
http://www.w3schools.com/xml/default.ASP
http://en.wikipedia.org/wiki/List_of_XML_markup_langua
ges
http://www.w3schools.com/xml/xml_technologies.asp
Tags