The document provides information about XML (eXtensible Markup Language) including its definition, purpose, applications, advantages, format, and rules. XML is a markup language used to carry and share data, not display it. It allows users to define their own tags to describe documents and data. Some key uses of XML are to transfer data over the internet, in web searching, e-business applications, and simplifying data sharing and transport across different platforms. The document also provides an example XML code and differences between XML and HTML.
5. XML
• XML stands for eXtensible Markup Language.
• XML is a markup language much like HTML
• XML was designed to carry data, not to display
data
• XML tags are not predefined. You must define
your own tags
• A markup language is used to provide
information about a document.
6. USE OF XML
• XML documents are used to transfer data
from one place to another often over the
Internet.
• XML subsets are designed for particular
applications.
Eg: It is used to send breaking news bulletins
from one web site to another.
7. XML APPLICATIONS
• Web searching and automating Web tasks:
XML defines the type of information contained in a document,
making it easier to return useful results when searching the
Web
• e-business applications:
XML implementations make electronic data interchange (EDI)
more accessible for information interchange, business-to-
business transactions, and business-to-consumer
transactions.
8. ADVANTAGES OF XML
• XML Separates Data from HTML
• XML Simplifies Data Sharing
• XML Simplifies Data Transport
• XML Simplifies Platform Changes
• XML Makes Your Data More Available
9. FORMAT OF XML DOCUMENT
A XML document is consist of tags and data. All
data in an XML document is wrapped by the tags
<parent>
<child1>
<subchild1>.....</subchild1>
<subchild2>.....</subchild2>
</child1>
</parent>
10. Example of xml document
<?xml version="1.0" encoding= "UTF-8" ?>
<address>
<name>Sanila</name>
<email>sanila@gmail.com</email>
<phone>98564125</phone>
<birthday>1992-09-07</birthday>
</address>
OUTPUT
11. DIFFERENCE BETWEEN XML AND
HTML
• HTML tags have a fixed meaning and browsers
know what it is.
• XML tags are different for different
applications, and users know what they mean.
• HTML tags are used for display.
• XML tags are used to describe documents and
data.
12. XML RULES
• All XML Elements Must Have a Closing Tag
Eg:<name> john</name>
• XML Elements Must be Properly Nested
Eg: <b><i>This text is bold and italic</i></b>
• XML Tags are Case Sensitive
<message>This is correct</message>
13. • XML Attribute Values Must be Quoted
Eg: <note date="12/11/2007">
<to>Tove</to>
<from>Jani</from>
</note>
• XML Documents Must Have a Root Element
Eg:<note >
<to>Tove</to>
<from>Jani</from>
</note>
14. XML ELEMENTS
An XML element is everything from the element's
start tag to the element's end tag.
An element can contain:
• other elements
• text
• attributes
16. XML NAMING RULE
• Names can contain letters, numbers, and
other characters
• Names cannot start with a number or
punctuation character
• Names cannot start with the letters xml (or
XML, or Xml, etc)
• Names cannot contain spaces
17. Disclaimer: This presentation is prepared by trainees of
baabtra as a part of mentoring program. This is not official
document of baabtra –Mentoring Partner
Baabtra-Mentoring Partner is the mentoring division of baabte System Technologies Pvt .
Ltd
18.
19. If this presentation helped you, please visit our
page facebook.com/baabtra and like it.
Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com