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
4. What is XML?
XML stands for EXtensible Markup Language.
XML is a markup language much like HTML.
XML is Not a Replacement for HTML.
XML was created to structure, store, and transport
information.
XML tags are not predefined.
5. Basic Rules
An XML element is made up of a start tag, an end tag, and
data in between.
XML tags are case-sensitive.
<Month>April</Month>
Data
Opening and
closing tags.
<CITY> <City> <city>
6. XML Naming Rules
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.
7. XML -Declaration
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
1.0 is the current version.
The encoding declaration identifies
which encoding is used to represent the
characters in the document.
Use 'no' if the XML document is
linked to an external entity
references.
8. XML Documents Form a Tree
Structure
• XML documents must contain a root element. This element is
"the parent" of all other elements.
• All elements can have sub elements (child elements).
<root>
<child>
<subchild>.....</subchild>
</child>
</root>
9. An Example XML Document
<Employee>
<name>john</name>
<from>mumbi</from>
<age>23</age>
<Job>Designer<job>
</Employee>
Root
element
Child elements
10. XML Attributes
XML elements can have attributes, just like HTML.
Attributes provide additional information about an element.
Attribute values must always be quoted.
<person gender="female">
<firstname>Anna</firstname>
<lastname>Smith</lastname>
</person>
11. XML Elements vs. Attributes
<note date="10/01/2008">
<to>Tove</to>
<from>Jani</from>
<heading>Reminder
</heading>
<body>Don't forget me this
weekend!</body>
</note>
<note>
<date>10/01/2008</date>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</headi
ng>
<body>Don't forget me this
weekend!</body>
</note>
12. XML Web Service
Web services are application components
Web-applications are simply applications that run on the web.
By using Web services, your application can publish its
function or message to the rest of the world.
Web services use XML to code and to decode data, and SOAP
to transport it (using open protocols).
13. Advantages of the XML Web services
It allows programs written in different languages on different
platforms to communicate with each other in a standards-based
way.
XML is a software- and hardware-independent tool for
carrying information.
15. 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.
16. 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
Give a feedback @ massbaab.com/baabtra
Thanks in advance
www.baabtra.com | www.massbaab.com |www.baabte.com
17. 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
Contact Us