SlideShare a Scribd company logo
1 of 11
XML
A Simple Introduction
By: Neuza Arraia && Luis Guerreirinho
WHAT IS XML
 XML is a software- and hardware-independent tool for carrying
information.
 XML stands for Extensible Markup Language;
 XML is a markup language much like HTML;
 XML was designed to describe data, not to display data like
HTML;
 XML tags are not predefined. You must “invent” your own tags;
 XML is designed to be self-descriptive.
WHERE IT IS APPLIED?
 XML is used in many aspects of web development, often to
simplify data storage and sharing.
 XML data is stored in text format. This makes it easier to expand or
upgrade to new operating systems, new applications, new
browsers without losing data.
 With XML, your data can be avaliable to all kinds of “Reading
Machines” (Handheld computers, voice machines, news feeds,
etc.)
XML STRUCTURE
 The first line in the XML declaration defines the XML version and
the encoding used;
 The next line describes the root element of the document;
 Next is the child elements of the root (<to>,
<from>,<heading>,<body>)
 The last line defines the end of the root element.
<?xml version = “1,0” encoding = “UTF-8”?>
<note>
<to>Mary</to>
<from>Lois</from>
<heading>Reminder</heading>
<body>Hello how are you?</body>
</note>
XML SYNTAX RULES
 All XML elements must have a closing tag.
 XML tags are case-sensitive.
 XML documents must have a root element.
 XML attributes values must be quoted.
XML SYNTAX RULES
Entity References:
Are used to avoid errors with some charaters like “<“ and “>”
&lt < Less than
&gt > Greater than
&amp & Ampersand
&apos ‘ Apostrophe
&quot “ Quoatation mark
XML SYNTAX RULES
 Comments in XMLm are made this way: (<!-- comment-->).
 White-spaces are preserved in XML.
 XML store new lines as LF.
XML ELEMENTS
 XML element is everything from the element’s start tag to the
element’s end tag.
 Empty elements in XMLn are represented
by:<example></example> or <example />.
 XML naming rules:
 Element names are case-sensitive;
 Element names must start with a letter or undrscore:
 Element names cannot start with the letters xml;
 Element names cannot contain spaces;
XML ATTRIBUTES
 XML elements ca have attributes, that provide additional
information about it.
 XML attributes must be quoted. (e.g. <dog size= “big”>).
 Problems of attributes:
 attributes cannot contain multiple values (elements can)
 attributes cannot contain tree structures (elements can)
 attributes are not easily expandable (for future changes)
XML ENCODING
 Use a XML editor that supports encoding.
 Make sure you know what encoding the editor uses.
 Describe the encoding in the encoding attribute.
 UTF-8 is the safest encoding to use.
 UTF-8 is the web standard.
CONCLUSION
The XML can be a great ally in developing applications for the
Internet. We have seen that it does not replace HTML, but fills a
great need of this language, providing a really efficient way to
transmit all kind of data through the World Wide Web. I hope this
slides helped, in a definitive way, to understand what is XML
language.

More Related Content

What's hot (18)

Xml intro1
Xml intro1Xml intro1
Xml intro1
 
XML
XMLXML
XML
 
XML
XMLXML
XML
 
Web Development Course - XML by RSOLUTIONS
Web Development Course - XML by RSOLUTIONSWeb Development Course - XML by RSOLUTIONS
Web Development Course - XML by RSOLUTIONS
 
XML | Computer Science
XML | Computer ScienceXML | Computer Science
XML | Computer Science
 
Xml and xml processor
Xml and xml processorXml and xml processor
Xml and xml processor
 
XML Presentation-2
XML Presentation-2XML Presentation-2
XML Presentation-2
 
Extensible Markup Language (XML)
Extensible Markup Language (XML)Extensible Markup Language (XML)
Extensible Markup Language (XML)
 
Unit 2.2
Unit 2.2Unit 2.2
Unit 2.2
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
paper about xml
paper about xmlpaper about xml
paper about xml
 
Xml Presentation-3
Xml Presentation-3Xml Presentation-3
Xml Presentation-3
 
Xml 150323102007-conversion-gate01
Xml 150323102007-conversion-gate01Xml 150323102007-conversion-gate01
Xml 150323102007-conversion-gate01
 
XML-Extensible Markup Language
XML-Extensible Markup Language XML-Extensible Markup Language
XML-Extensible Markup Language
 
Xml Presentation-1
Xml Presentation-1Xml Presentation-1
Xml Presentation-1
 
Xml material
Xml materialXml material
Xml material
 
Sgml and xml
Sgml and xmlSgml and xml
Sgml and xml
 
Xml data transformation
Xml data transformationXml data transformation
Xml data transformation
 

Viewers also liked

13 hja 01 motive power mst
13 hja 01 motive power mst13 hja 01 motive power mst
13 hja 01 motive power mstHenning Jacobsen
 
Remarketing with Google Analytics - SES London 2013
Remarketing with Google Analytics - SES London 2013Remarketing with Google Analytics - SES London 2013
Remarketing with Google Analytics - SES London 2013Samantha Noble
 
PhRMA Report 2012: Medicines in Development for Children
PhRMA Report 2012: Medicines in Development for ChildrenPhRMA Report 2012: Medicines in Development for Children
PhRMA Report 2012: Medicines in Development for ChildrenPhRMA
 
Agile concepts for quality and process engineers for slideshare
Agile concepts for quality and process engineers   for slideshareAgile concepts for quality and process engineers   for slideshare
Agile concepts for quality and process engineers for slideshareYuval Yeret
 
10 Pictures that should never be your #LinkedIn Profile Picture
10 Pictures that should never be your #LinkedIn Profile Picture10 Pictures that should never be your #LinkedIn Profile Picture
10 Pictures that should never be your #LinkedIn Profile PictureTariq Ahmad
 
Revaluing Ecosystems: A special edition of The Economist magazine
Revaluing Ecosystems: A special edition of The Economist magazineRevaluing Ecosystems: A special edition of The Economist magazine
Revaluing Ecosystems: A special edition of The Economist magazineThe Rockefeller Foundation
 
Don't Believe the Hype, Keywords Aren't Dead!
Don't Believe the Hype, Keywords Aren't Dead!Don't Believe the Hype, Keywords Aren't Dead!
Don't Believe the Hype, Keywords Aren't Dead!David Black
 
Scoop intro for customers 121114 cf (1)
Scoop intro for customers 121114 cf (1)Scoop intro for customers 121114 cf (1)
Scoop intro for customers 121114 cf (1)Charlie Pankey
 
DIYDays - Working with a Creative Technologist
DIYDays - Working with a Creative TechnologistDIYDays - Working with a Creative Technologist
DIYDays - Working with a Creative Technologistheidihysell
 
Comparison of Public Workers Salaries in New York
Comparison of Public Workers Salaries in New YorkComparison of Public Workers Salaries in New York
Comparison of Public Workers Salaries in New YorkJohn Citibois
 
9th chapter 4 quiz.
9th chapter 4 quiz.9th chapter 4 quiz.
9th chapter 4 quiz.mohan bio
 

Viewers also liked (20)

Hello
HelloHello
Hello
 
Momentos
MomentosMomentos
Momentos
 
13 hja 01 motive power mst
13 hja 01 motive power mst13 hja 01 motive power mst
13 hja 01 motive power mst
 
Remarketing with Google Analytics - SES London 2013
Remarketing with Google Analytics - SES London 2013Remarketing with Google Analytics - SES London 2013
Remarketing with Google Analytics - SES London 2013
 
PhRMA Report 2012: Medicines in Development for Children
PhRMA Report 2012: Medicines in Development for ChildrenPhRMA Report 2012: Medicines in Development for Children
PhRMA Report 2012: Medicines in Development for Children
 
Agile concepts for quality and process engineers for slideshare
Agile concepts for quality and process engineers   for slideshareAgile concepts for quality and process engineers   for slideshare
Agile concepts for quality and process engineers for slideshare
 
BAR GRAPH
BAR GRAPHBAR GRAPH
BAR GRAPH
 
Strangers Near You
Strangers Near YouStrangers Near You
Strangers Near You
 
Xna game development
Xna game developmentXna game development
Xna game development
 
10 Pictures that should never be your #LinkedIn Profile Picture
10 Pictures that should never be your #LinkedIn Profile Picture10 Pictures that should never be your #LinkedIn Profile Picture
10 Pictures that should never be your #LinkedIn Profile Picture
 
Daneia Stratighkh Katagrafh
Daneia Stratighkh KatagrafhDaneia Stratighkh Katagrafh
Daneia Stratighkh Katagrafh
 
Revaluing Ecosystems: A special edition of The Economist magazine
Revaluing Ecosystems: A special edition of The Economist magazineRevaluing Ecosystems: A special edition of The Economist magazine
Revaluing Ecosystems: A special edition of The Economist magazine
 
Don't Believe the Hype, Keywords Aren't Dead!
Don't Believe the Hype, Keywords Aren't Dead!Don't Believe the Hype, Keywords Aren't Dead!
Don't Believe the Hype, Keywords Aren't Dead!
 
Scoop intro for customers 121114 cf (1)
Scoop intro for customers 121114 cf (1)Scoop intro for customers 121114 cf (1)
Scoop intro for customers 121114 cf (1)
 
The Apprentiice Profile
The Apprentiice ProfileThe Apprentiice Profile
The Apprentiice Profile
 
Emprendedor
EmprendedorEmprendedor
Emprendedor
 
DIYDays - Working with a Creative Technologist
DIYDays - Working with a Creative TechnologistDIYDays - Working with a Creative Technologist
DIYDays - Working with a Creative Technologist
 
Comparison of Public Workers Salaries in New York
Comparison of Public Workers Salaries in New YorkComparison of Public Workers Salaries in New York
Comparison of Public Workers Salaries in New York
 
9th chapter 4 quiz.
9th chapter 4 quiz.9th chapter 4 quiz.
9th chapter 4 quiz.
 
Informatica tarea
Informatica tareaInformatica tarea
Informatica tarea
 

Similar to XML simple Introduction (20)

Xml tutorial
Xml tutorialXml tutorial
Xml tutorial
 
Xml
Xml Xml
Xml
 
xml introduction in web technologies subject
xml introduction in web technologies subjectxml introduction in web technologies subject
xml introduction in web technologies subject
 
XML.pptx
XML.pptxXML.pptx
XML.pptx
 
XML
XMLXML
XML
 
WT UNIT-2 XML.pdf
WT UNIT-2 XML.pdfWT UNIT-2 XML.pdf
WT UNIT-2 XML.pdf
 
eXtensible Markup Language (By Dr.Hatem Mohamed)
eXtensible Markup Language (By Dr.Hatem Mohamed)eXtensible Markup Language (By Dr.Hatem Mohamed)
eXtensible Markup Language (By Dr.Hatem Mohamed)
 
xml.pptx
xml.pptxxml.pptx
xml.pptx
 
XML - Extensible Markup Language for Network Security.pptx
XML - Extensible Markup Language for Network Security.pptxXML - Extensible Markup Language for Network Security.pptx
XML - Extensible Markup Language for Network Security.pptx
 
Jaxp Xmltutorial 11 200108
Jaxp Xmltutorial 11 200108Jaxp Xmltutorial 11 200108
Jaxp Xmltutorial 11 200108
 
Intro xml
Intro xmlIntro xml
Intro xml
 
Week1 xml
Week1 xmlWeek1 xml
Week1 xml
 
Xml description
Xml descriptionXml description
Xml description
 
uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2
 
XML1.pptx
XML1.pptxXML1.pptx
XML1.pptx
 
Xml
XmlXml
Xml
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
Xml
XmlXml
Xml
 
Xml
XmlXml
Xml
 
XML
XMLXML
XML
 

Recently uploaded

Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130  Available With RoomVIP Kolkata Call Girl Alambazar 👉 8250192130  Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Roomdivyansh0kumar0
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝soniya singh
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsThierry TROUIN ☁
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...Diya Sharma
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Roomdivyansh0kumar0
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersDamian Radcliffe
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012rehmti665
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts servicevipmodelshub1
 
Low Rate Call Girls Kolkata Avani 🤌 8250192130 🚀 Vip Call Girls Kolkata
Low Rate Call Girls Kolkata Avani 🤌  8250192130 🚀 Vip Call Girls KolkataLow Rate Call Girls Kolkata Avani 🤌  8250192130 🚀 Vip Call Girls Kolkata
Low Rate Call Girls Kolkata Avani 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Callshivangimorya083
 
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkataanamikaraghav4
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024APNIC
 
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Roomishabajaj13
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Dana Luther
 

Recently uploaded (20)

Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
Call Girls in Uttam Nagar Delhi 💯Call Us 🔝8264348440🔝
 
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Ishita 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Ishita 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130  Available With RoomVIP Kolkata Call Girl Alambazar 👉 8250192130  Available With Room
VIP Kolkata Call Girl Alambazar 👉 8250192130 Available With Room
 
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 6 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
Dwarka Sector 26 Call Girls | Delhi | 9999965857 🫦 Vanshika Verma More Our Se...
 
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
Call Girls In Model Towh Delhi 💯Call Us 🔝8264348440🔝
 
AlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with FlowsAlbaniaDreamin24 - How to easily use an API with Flows
AlbaniaDreamin24 - How to easily use an API with Flows
 
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No AdvanceRohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
Rohini Sector 22 Call Girls Delhi 9999965857 @Sabina Saikh No Advance
 
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
₹5.5k {Cash Payment}New Friends Colony Call Girls In [Delhi NIHARIKA] 🔝|97111...
 
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130  Available With RoomVIP Kolkata Call Girl Kestopur 👉 8250192130  Available With Room
VIP Kolkata Call Girl Kestopur 👉 8250192130 Available With Room
 
Call Girls In South Ex 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In South Ex 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICECall Girls In South Ex 📱  9999965857  🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
Call Girls In South Ex 📱 9999965857 🤩 Delhi 🫦 HOT AND SEXY VVIP 🍎 SERVICE
 
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providersMoving Beyond Twitter/X and Facebook - Social Media for local news providers
Moving Beyond Twitter/X and Facebook - Social Media for local news providers
 
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
Call Girls South Delhi Delhi reach out to us at ☎ 9711199012
 
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts serviceChennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
Chennai Call Girls Alwarpet Phone 🍆 8250192130 👅 celebrity escorts service
 
Low Rate Call Girls Kolkata Avani 🤌 8250192130 🚀 Vip Call Girls Kolkata
Low Rate Call Girls Kolkata Avani 🤌  8250192130 🚀 Vip Call Girls KolkataLow Rate Call Girls Kolkata Avani 🤌  8250192130 🚀 Vip Call Girls Kolkata
Low Rate Call Girls Kolkata Avani 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip CallDelhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
Delhi Call Girls Rohini 9711199171 ☎✔👌✔ Whatsapp Hard And Sexy Vip Call
 
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls KolkataRussian Call Girls in Kolkata Samaira 🤌  8250192130 🚀 Vip Call Girls Kolkata
Russian Call Girls in Kolkata Samaira 🤌 8250192130 🚀 Vip Call Girls Kolkata
 
On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024On Starlink, presented by Geoff Huston at NZNOG 2024
On Starlink, presented by Geoff Huston at NZNOG 2024
 
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With RoomVIP Kolkata Call Girl Salt Lake 👉 8250192130  Available With Room
VIP Kolkata Call Girl Salt Lake 👉 8250192130 Available With Room
 
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
Packaging the Monolith - PHP Tek 2024 (Breaking it down one bite at a time)
 

XML simple Introduction

  • 1. XML A Simple Introduction By: Neuza Arraia && Luis Guerreirinho
  • 2. WHAT IS XML  XML is a software- and hardware-independent tool for carrying information.  XML stands for Extensible Markup Language;  XML is a markup language much like HTML;  XML was designed to describe data, not to display data like HTML;  XML tags are not predefined. You must “invent” your own tags;  XML is designed to be self-descriptive.
  • 3. WHERE IT IS APPLIED?  XML is used in many aspects of web development, often to simplify data storage and sharing.  XML data is stored in text format. This makes it easier to expand or upgrade to new operating systems, new applications, new browsers without losing data.  With XML, your data can be avaliable to all kinds of “Reading Machines” (Handheld computers, voice machines, news feeds, etc.)
  • 4. XML STRUCTURE  The first line in the XML declaration defines the XML version and the encoding used;  The next line describes the root element of the document;  Next is the child elements of the root (<to>, <from>,<heading>,<body>)  The last line defines the end of the root element. <?xml version = “1,0” encoding = “UTF-8”?> <note> <to>Mary</to> <from>Lois</from> <heading>Reminder</heading> <body>Hello how are you?</body> </note>
  • 5. XML SYNTAX RULES  All XML elements must have a closing tag.  XML tags are case-sensitive.  XML documents must have a root element.  XML attributes values must be quoted.
  • 6. XML SYNTAX RULES Entity References: Are used to avoid errors with some charaters like “<“ and “>” &lt < Less than &gt > Greater than &amp & Ampersand &apos ‘ Apostrophe &quot “ Quoatation mark
  • 7. XML SYNTAX RULES  Comments in XMLm are made this way: (<!-- comment-->).  White-spaces are preserved in XML.  XML store new lines as LF.
  • 8. XML ELEMENTS  XML element is everything from the element’s start tag to the element’s end tag.  Empty elements in XMLn are represented by:<example></example> or <example />.  XML naming rules:  Element names are case-sensitive;  Element names must start with a letter or undrscore:  Element names cannot start with the letters xml;  Element names cannot contain spaces;
  • 9. XML ATTRIBUTES  XML elements ca have attributes, that provide additional information about it.  XML attributes must be quoted. (e.g. <dog size= “big”>).  Problems of attributes:  attributes cannot contain multiple values (elements can)  attributes cannot contain tree structures (elements can)  attributes are not easily expandable (for future changes)
  • 10. XML ENCODING  Use a XML editor that supports encoding.  Make sure you know what encoding the editor uses.  Describe the encoding in the encoding attribute.  UTF-8 is the safest encoding to use.  UTF-8 is the web standard.
  • 11. CONCLUSION The XML can be a great ally in developing applications for the Internet. We have seen that it does not replace HTML, but fills a great need of this language, providing a really efficient way to transmit all kind of data through the World Wide Web. I hope this slides helped, in a definitive way, to understand what is XML language.