ݺߣ

ݺߣShare a Scribd company logo
XMLExtensible Markup Language (XML) is a powerful mechanism of data exchange. It is an ideal solution for transferring structured data from server-to-client, server-to-server or an application-to-application.
What is XML?XML stands for eXtensibleMarkup LanguageXML is a meta-markup language thats specifies rules for creating mark up languagesXML was designed to CARRY data, not to display dataXML does not have any fixed set of tags (hence is extensible!) You must define your tagsXML is designed to be self-descriptiveXML is case-sensitive. Hence in an XML document <account>, <Account> and <ACCOUNT> are three different tags.XML is a W3C RecommendationEvery XML-document is text-based and have the file extension .xmlQuestions: What is meant by text based  (as opposed to binary) here?Why is XML being text based then an advantage?
The Difference Between XML and HTMLXML is not a replacement for HTML.XML and HTML were designed with different goals:XML was designed to transport and store data, with focus on what the data isHTML was designed to display data, with focus on how data looksHTML is about displaying information, while XML is about carrying information.
XML Does Not DO AnythingMaybe it is a little hard to understand, but XML does not DO anything. XML was created to structure, store, and transport information.XML tags are actually elements Elements can have sub elements or child elements just like html and other markup languages
XML is Not a Replacement for HTMLXML is a complement to HTML.It is important to understand that XML is not a replacement for HTML. In most web applications, XML is used to transport data, while HTML is used to format and display the data.XML is a software- and hardware-independent tool for carrying information.XML is EverywhereXML is now as important for the Web as HTML was to the foundation of the Web.XML is the most common tool for data transmissions between all sorts of applications.Can you think of anywhere that XML is in use?
An XML example:This example is quite self descriptive. It has sender and receiver information, it also has a heading and a message body.But still, this XML document does not DO anything. It is just information wrapped in tags. Someone must write a piece of software to send, receive or display it.With XML You Invent Your Own TagsThe tags in the example (like <to> and <from>) are not defined in any XML standard. These tags are "invented" by the author of the XML document.That is because the XML language has no predefined tags.The tags used in HTML are predefined. HTML documents can only use tags defined in the HTML standard (like <p>, <h1>, etc.).XML allows the author to define his/her own tags and his/her own document structure.<?xml version="1.0" ?><note><sender id=”02”>Tove</sender><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>
“Well formed” XML Syntax and  RulesXML documents have the file extension .xml  Includes XML Declaration  eg <?xml version="1.0" ?>  One  root- element  eg <note>  Every tag is opened and ended  <from>   </from>  Attributes are inside quotations <sender id=”02”>Has no overlapping tags Is Case sensitive
Exercise 1Is the following xml file wellformed?Does it utilise sub elements or child elements<booklist>       <book id=01>            <title>XML Made Easy</title>            <author>John Smith</Author>       book></booklist>
Exercise 2Open Dreamweaver Define a new siteCreate a new xml document with the previous content but ensure it is “well formed”.Open this xml document in a browser the xml tags should display and be colour coded. Why are they a different content to the “tag” content?
Exercise 3Download an flash image slideshow from http://www.flashxml.net/basic-files/Download these images http://www.urshula.com/xtras/week10images.zipEdit the xml to include only my images that I asked you to download (the hyperlinks can go to http://www.urshula.com; http://www.google.com; http://www.northcoast.tafensw.edu.au; and any where else you want.)Look at the xml document from flashxml is it well formed?What is the root element ?What sub elements and attributes does it use?

More Related Content

What's hot (18)

XML
XMLXML
XML
Mukesh Tekwani
Xml
XmlXml
Xml
Abhishek Kesharwani
Xmlphp
XmlphpXmlphp
Xmlphp
kiran vadariya
Xml description
Xml descriptionXml description
Xml description
sonam gupta
XML
XMLXML
XML
Daminda Herath
Xml material
Xml materialXml material
Xml material
prathap kumar
XML Introduction
XML IntroductionXML Introduction
XML Introduction
Marco Bresciani
Extensible Markup Language (XML)
Extensible Markup Language (XML)Extensible Markup Language (XML)
Extensible Markup Language (XML)
AakankshaR
XML-Extensible Markup Language
XML-Extensible Markup Language XML-Extensible Markup Language
XML-Extensible Markup Language
Ann Joseph
Xhtml
XhtmlXhtml
Xhtml
Samir Sabry
Xml For Dummies Chapter 4 Adding Xhtml For The Web
Xml For Dummies   Chapter 4 Adding Xhtml For The WebXml For Dummies   Chapter 4 Adding Xhtml For The Web
Xml For Dummies Chapter 4 Adding Xhtml For The Web
phanleson
Web Services Part 1
Web Services Part 1Web Services Part 1
Web Services Part 1
patinijava
Html (hyper text markup language)
Html (hyper text markup language)Html (hyper text markup language)
Html (hyper text markup language)
Denni Domingo
Xml 215-presentation
Xml 215-presentationXml 215-presentation
Xml 215-presentation
Manish Chaurasia
Xhtml
XhtmlXhtml
Xhtml
sana mateen
Web 130 XML Podcast
Web 130 XML PodcastWeb 130 XML Podcast
Web 130 XML Podcast
cmkrimm
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
BG Java EE Course
Wp unit III
Wp unit IIIWp unit III
Wp unit III
Bhavsingh Maloth

Viewers also liked (20)

Week 4 market segmentation
Week 4 market segmentationWeek 4 market segmentation
Week 4 market segmentation
hapy
Assessment Validation IT Conference 08
Assessment Validation IT Conference 08Assessment Validation IT Conference 08
Assessment Validation IT Conference 08
hapy
Meta tags
Meta tagsMeta tags
Meta tags
hapy
Week 12 xml and xsl
Week 12 xml and xslWeek 12 xml and xsl
Week 12 xml and xsl
hapy
What is wordpress week 1
What is wordpress week 1What is wordpress week 1
What is wordpress week 1
hapy
Meta tags1
Meta tags1Meta tags1
Meta tags1
hapy
Wikispaces Help
Wikispaces HelpWikispaces Help
Wikispaces Help
hapy
Week12 Obtain Client Sign Off On Technical Documentation
Week12 Obtain Client Sign Off On Technical DocumentationWeek12 Obtain Client Sign Off On Technical Documentation
Week12 Obtain Client Sign Off On Technical Documentation
hapy
Week9 Define And Document Business Problems
Week9 Define And Document Business ProblemsWeek9 Define And Document Business Problems
Week9 Define And Document Business Problems
hapy
Week4 Ensure Analysis Is Accurate And Complete
Week4 Ensure Analysis Is Accurate And CompleteWeek4 Ensure Analysis Is Accurate And Complete
Week4 Ensure Analysis Is Accurate And Complete
hapy
2 understanding client support needs
2 understanding client support needs2 understanding client support needs
2 understanding client support needs
hapy
Week11 Determine Technical Requirements
Week11 Determine Technical RequirementsWeek11 Determine Technical Requirements
Week11 Determine Technical Requirements
hapy
1 understanding your clients
1 understanding your clients1 understanding your clients
1 understanding your clients
hapy
Meta tags
Meta tagsMeta tags
Meta tags
hapy
3 proposing client support solutions
3 proposing client support solutions3 proposing client support solutions
3 proposing client support solutions
hapy
The Art Of Service Recovery
The Art Of Service RecoveryThe Art Of Service Recovery
The Art Of Service Recovery
Barry Thierno
The Profitable Art Of Service Recovery
The Profitable Art Of Service RecoveryThe Profitable Art Of Service Recovery
The Profitable Art Of Service Recovery
Siddharth Anand
What is a service level agreement week7
What is a service level agreement week7What is a service level agreement week7
What is a service level agreement week7
hapy
Week7 Submit Analysis And Gain Agreement
Week7 Submit Analysis And Gain AgreementWeek7 Submit Analysis And Gain Agreement
Week7 Submit Analysis And Gain Agreement
hapy
Web 2 Tools
Web 2 ToolsWeb 2 Tools
Web 2 Tools
hapy
Week 4 market segmentation
Week 4 market segmentationWeek 4 market segmentation
Week 4 market segmentation
hapy
Assessment Validation IT Conference 08
Assessment Validation IT Conference 08Assessment Validation IT Conference 08
Assessment Validation IT Conference 08
hapy
Meta tags
Meta tagsMeta tags
Meta tags
hapy
Week 12 xml and xsl
Week 12 xml and xslWeek 12 xml and xsl
Week 12 xml and xsl
hapy
What is wordpress week 1
What is wordpress week 1What is wordpress week 1
What is wordpress week 1
hapy
Meta tags1
Meta tags1Meta tags1
Meta tags1
hapy
Wikispaces Help
Wikispaces HelpWikispaces Help
Wikispaces Help
hapy
Week12 Obtain Client Sign Off On Technical Documentation
Week12 Obtain Client Sign Off On Technical DocumentationWeek12 Obtain Client Sign Off On Technical Documentation
Week12 Obtain Client Sign Off On Technical Documentation
hapy
Week9 Define And Document Business Problems
Week9 Define And Document Business ProblemsWeek9 Define And Document Business Problems
Week9 Define And Document Business Problems
hapy
Week4 Ensure Analysis Is Accurate And Complete
Week4 Ensure Analysis Is Accurate And CompleteWeek4 Ensure Analysis Is Accurate And Complete
Week4 Ensure Analysis Is Accurate And Complete
hapy
2 understanding client support needs
2 understanding client support needs2 understanding client support needs
2 understanding client support needs
hapy
Week11 Determine Technical Requirements
Week11 Determine Technical RequirementsWeek11 Determine Technical Requirements
Week11 Determine Technical Requirements
hapy
1 understanding your clients
1 understanding your clients1 understanding your clients
1 understanding your clients
hapy
Meta tags
Meta tagsMeta tags
Meta tags
hapy
3 proposing client support solutions
3 proposing client support solutions3 proposing client support solutions
3 proposing client support solutions
hapy
The Art Of Service Recovery
The Art Of Service RecoveryThe Art Of Service Recovery
The Art Of Service Recovery
Barry Thierno
The Profitable Art Of Service Recovery
The Profitable Art Of Service RecoveryThe Profitable Art Of Service Recovery
The Profitable Art Of Service Recovery
Siddharth Anand
What is a service level agreement week7
What is a service level agreement week7What is a service level agreement week7
What is a service level agreement week7
hapy
Week7 Submit Analysis And Gain Agreement
Week7 Submit Analysis And Gain AgreementWeek7 Submit Analysis And Gain Agreement
Week7 Submit Analysis And Gain Agreement
hapy
Web 2 Tools
Web 2 ToolsWeb 2 Tools
Web 2 Tools
hapy

Similar to Week1 xml (20)

Xml material
Xml materialXml material
Xml material
xavier john
Xml material
Xml materialXml material
Xml material
prathap kumar
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
yht4ever
01 Xml Begin
01 Xml Begin01 Xml Begin
01 Xml Begin
Dennis Pipper
Xml 1
Xml 1Xml 1
Xml 1
pavishkumarsingh
xml introduction in web technologies subject
xml introduction in web technologies subjectxml introduction in web technologies subject
xml introduction in web technologies subject
UdayKumar693239
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
soumya
XML DTD Validate
XML DTD ValidateXML DTD Validate
XML DTD Validate
jomerson remorosa
Web programming unit IIII XML &DOM NOTES BY BHAVSINGH MALOTH
Web programming unit IIII XML &DOM NOTES BY BHAVSINGH MALOTHWeb programming unit IIII XML &DOM NOTES BY BHAVSINGH MALOTH
Web programming unit IIII XML &DOM NOTES BY BHAVSINGH MALOTH
Bhavsingh Maloth
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
Abhishek Kesharwani
Lotusphere 2006 AD212 Introduction to DXL
Lotusphere 2006 AD212 Introduction to DXLLotusphere 2006 AD212 Introduction to DXL
Lotusphere 2006 AD212 Introduction to DXL
dominion
Unit 2.2
Unit 2.2Unit 2.2
Unit 2.2
Abhishek Kesharwani
Xml intro1
Xml intro1Xml intro1
Xml intro1
Alfonso Gabriel López Ceballos
Intro XML for archivists (2011)
Intro XML for archivists (2011)Intro XML for archivists (2011)
Intro XML for archivists (2011)
Jane Stevenson
Xml
XmlXml
Xml
Vishwa Mohan
Unit 2.2
Unit 2.2Unit 2.2
Unit 2.2
Abhishek Kesharwani
XML - ExtensibleMarkupLanguage for Network Security.pptx
XML - ExtensibleMarkupLanguage for Network Security.pptxXML - ExtensibleMarkupLanguage for Network Security.pptx
XML - ExtensibleMarkupLanguage for Network Security.pptx
kalanamax
3.web Technology and sub topics for computer applications
3.web Technology and sub topics for computer applications3.web Technology and sub topics for computer applications
3.web Technology and sub topics for computer applications
Omkar990719
Web Technology XML Attributes and elementsUnit 3.doc
Web Technology XML Attributes and elementsUnit 3.docWeb Technology XML Attributes and elementsUnit 3.doc
Web Technology XML Attributes and elementsUnit 3.doc
uthayashangar1
Module 5 XML Notes.pdf
Module 5 XML Notes.pdfModule 5 XML Notes.pdf
Module 5 XML Notes.pdf
ssuser21721b

More from hapy (6)

Business requirements documents
Business requirements documentsBusiness requirements documents
Business requirements documents
hapy
Information Architecture Intro
Information Architecture IntroInformation Architecture Intro
Information Architecture Intro
hapy
Week10 Analysing Client Requirements
Week10 Analysing Client RequirementsWeek10 Analysing Client Requirements
Week10 Analysing Client Requirements
hapy
Week8 Topic1 Translate Business Needs Into Technical Requirements
Week8 Topic1 Translate Business Needs Into Technical RequirementsWeek8 Topic1 Translate Business Needs Into Technical Requirements
Week8 Topic1 Translate Business Needs Into Technical Requirements
hapy
Week5 Ensure Analysis Is Accurate And Complete
Week5 Ensure Analysis Is Accurate And CompleteWeek5 Ensure Analysis Is Accurate And Complete
Week5 Ensure Analysis Is Accurate And Complete
hapy
JAD Workshops
JAD WorkshopsJAD Workshops
JAD Workshops
hapy
Business requirements documents
Business requirements documentsBusiness requirements documents
Business requirements documents
hapy
Information Architecture Intro
Information Architecture IntroInformation Architecture Intro
Information Architecture Intro
hapy
Week10 Analysing Client Requirements
Week10 Analysing Client RequirementsWeek10 Analysing Client Requirements
Week10 Analysing Client Requirements
hapy
Week8 Topic1 Translate Business Needs Into Technical Requirements
Week8 Topic1 Translate Business Needs Into Technical RequirementsWeek8 Topic1 Translate Business Needs Into Technical Requirements
Week8 Topic1 Translate Business Needs Into Technical Requirements
hapy
Week5 Ensure Analysis Is Accurate And Complete
Week5 Ensure Analysis Is Accurate And CompleteWeek5 Ensure Analysis Is Accurate And Complete
Week5 Ensure Analysis Is Accurate And Complete
hapy
JAD Workshops
JAD WorkshopsJAD Workshops
JAD Workshops
hapy

Week1 xml

  • 1. XMLExtensible Markup Language (XML) is a powerful mechanism of data exchange. It is an ideal solution for transferring structured data from server-to-client, server-to-server or an application-to-application.
  • 2. What is XML?XML stands for eXtensibleMarkup LanguageXML is a meta-markup language thats specifies rules for creating mark up languagesXML was designed to CARRY data, not to display dataXML does not have any fixed set of tags (hence is extensible!) You must define your tagsXML is designed to be self-descriptiveXML is case-sensitive. Hence in an XML document <account>, <Account> and <ACCOUNT> are three different tags.XML is a W3C RecommendationEvery XML-document is text-based and have the file extension .xmlQuestions: What is meant by text based (as opposed to binary) here?Why is XML being text based then an advantage?
  • 3. The Difference Between XML and HTMLXML is not a replacement for HTML.XML and HTML were designed with different goals:XML was designed to transport and store data, with focus on what the data isHTML was designed to display data, with focus on how data looksHTML is about displaying information, while XML is about carrying information.
  • 4. XML Does Not DO AnythingMaybe it is a little hard to understand, but XML does not DO anything. XML was created to structure, store, and transport information.XML tags are actually elements Elements can have sub elements or child elements just like html and other markup languages
  • 5. XML is Not a Replacement for HTMLXML is a complement to HTML.It is important to understand that XML is not a replacement for HTML. In most web applications, XML is used to transport data, while HTML is used to format and display the data.XML is a software- and hardware-independent tool for carrying information.XML is EverywhereXML is now as important for the Web as HTML was to the foundation of the Web.XML is the most common tool for data transmissions between all sorts of applications.Can you think of anywhere that XML is in use?
  • 6. An XML example:This example is quite self descriptive. It has sender and receiver information, it also has a heading and a message body.But still, this XML document does not DO anything. It is just information wrapped in tags. Someone must write a piece of software to send, receive or display it.With XML You Invent Your Own TagsThe tags in the example (like <to> and <from>) are not defined in any XML standard. These tags are "invented" by the author of the XML document.That is because the XML language has no predefined tags.The tags used in HTML are predefined. HTML documents can only use tags defined in the HTML standard (like <p>, <h1>, etc.).XML allows the author to define his/her own tags and his/her own document structure.<?xml version="1.0" ?><note><sender id=”02”>Tove</sender><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>
  • 7. “Well formed” XML Syntax and RulesXML documents have the file extension .xml  Includes XML Declaration eg <?xml version="1.0" ?>  One root- element eg <note>  Every tag is opened and ended <from> </from>  Attributes are inside quotations <sender id=”02”>Has no overlapping tags Is Case sensitive
  • 8. Exercise 1Is the following xml file wellformed?Does it utilise sub elements or child elements<booklist> <book id=01> <title>XML Made Easy</title> <author>John Smith</Author> book></booklist>
  • 9. Exercise 2Open Dreamweaver Define a new siteCreate a new xml document with the previous content but ensure it is “well formed”.Open this xml document in a browser the xml tags should display and be colour coded. Why are they a different content to the “tag” content?
  • 10. Exercise 3Download an flash image slideshow from http://www.flashxml.net/basic-files/Download these images http://www.urshula.com/xtras/week10images.zipEdit the xml to include only my images that I asked you to download (the hyperlinks can go to http://www.urshula.com; http://www.google.com; http://www.northcoast.tafensw.edu.au; and any where else you want.)Look at the xml document from flashxml is it well formed?What is the root element ?What sub elements and attributes does it use?

Editor's Notes

  • #3: Every XML-document is text-based=&gt; sharing data between different computers!=&gt; sharing data in Internet!=&gt; platform independence!Problems with Binary formatPlatform independanceFirewallsHard to debugInspecting the file can be hardSince XML is text-based, it does not have the problems mentioned above.
  • #6: Office 2010
  • #9: XML documents have the file extension .xml  Includes XML Declaration eg &lt;?xml version=&quot;1.0&quot; ?&gt;  One root- element eg &lt;note&gt;  Every tag is opened and ended &lt;from&gt; &lt;/from&gt;  Attributes are inside quotations &lt;sender id=”02”&gt;Has no overlapping tags Is Case sensitive