3. 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
5. INTRODUCTION
What is a markup language....???
Markup languages are designed for the processing,
definition and presentation of text.
The language specifies code for formatting, both
the layout and style, within a text file.
Eg: XML, HTML etc;
7. How is XML different from HTML
Let us take an example to illustrate this:
HTML:
<b>visualbuilder.com webmaster@visualbuilder.com</b>
XML:
<site>
<sitename>visualbuilder.com</sitename>
<emailaddress>webmaster@visualbuilder.com</emailaddress>
</site>
8. XML – ELEMENTS AND ATTRIBUTES
Consider the example:
<customer gender=“male”>
<firstname>John</firstname>
<lastname>Smith</lastname>
</customer>
contents
attribute
element
9. XML -Declaration Syntax
XML Declaration specifies:
XML version : version used.
Encoding : designates the language used.
Standalone : requires document type definition or not
is specified.
Syntax:
<?xml version=“ ” encoding=“ ” standalone=“ ” ?>1.0 iso-8859-1 yes
10. XML - NAMING RULES
XML elements must follow the below naming rules:
Names can contain letters, numbers, and other characters.
Names must not start with a number or punctuation
character.
Names must not start with letters xml(or XML or Xml etc).
Names cannot contain spaces.
11. XML - SYNTAX RULES
All XML documents must have a root element
XML is case sensitive.
All XML opening tags must have closing tags.
XML elements must be properly nested.
Attributes values must be quoted.
Empty elements must be closed.
13. BENEFITS
XML can be used to share data.
XML can be used to store data.
Makes data more useful
14. EXAMPLE OF A SIMPLE XML PROGRAM
<?xml version="1.0" encoding="UTF-8" ?>
<customers>
<name>Fred</name>
<street>123 Main Street</street>
<city>Lansing</city>
<state>MI</state>
<zip>48901</zip>
<phone>517-123-4567</phone>
</customers>
17. Want to learn more about programming or Looking to become a good programmer?
Are you wasting time on searching so many contents online?
Do you want to learn things quickly?
Tired of spending huge amount of money to become a Software professional?
Do an online course
@ baabtra.com
We put industry standards to practice. Our structured, activity based courses are so designed
to make a quick, good software professional out of anybody who holds a passion for coding.
18. Follow us @ twitter.com/baabtra
Like us @ facebook.com/baabtra
Subscribe to us @ youtube.com/baabtra
Become a follower @ slideshare.net/BaabtraMentoringPartner
Connect to us @ in.linkedin.com/in/baabtra
Thanks in advance.
www.baabtra.com | www.massbaab.com |www.baabte.com
19. Contact Us
Emarald Mall (Big Bazar Building)
Mavoor Road, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
NC Complex, Near Bus Stand
Mukkam, Kozhikode,
Kerala, India.
Ph: + 91 – 495 40 25 550
Cafit Square,
Hilite Business Park,
Near Pantheerankavu,
Kozhikode
Start up Village
Eranakulam,
Kerala, India.
Email: info@baabtra.com