XML Technologies XML Basics  What is XML?  Why use XML?  How to write XML? 1XML Technologies - 2012 - David Raponi.

Slides:



Advertisements
Similar presentations
Chapter 7 An Introduction to XML.
Advertisements

What is XML? a meta language that allows you to create and format your own document markups a method for putting structured data into a text file; these.
1. Content – Collective term for all text, images, videos, etc. that you want to deliver to your audience. 2. Structure – How the content is placed on.
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
An Introduction to XML Based on the W3C XML Recommendations.
XML Unit 6 October 31. XML, review XML is used to markup data Used to describe information Uses tags like HTML –But all tags are user-defined –Must be.
XHTML 16-Apr-17.
INF201 Fall2010 Intro. to Info. Technologies Department of Informatics University at Albany – SUNY Original Source: w3schools.com Prepared by Xiao Liang,
Review Writing XML  Style  Common errors 1XML Technologies David Raponi.
IS 373—Web Standards Todd Will
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
23-Jun-15 HTML. 2 Web pages are HTML HTML stands for HyperText Markup Language Web pages are plain text files, written in HTML Browsers display web pages.
XML Introduction What is XML –XML is the eXtensible Markup Language –Became a W3C Recommendation in 1998 –Tag-based syntax, like HTML –You get to make.
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
Tutorial 11 Creating XML Document
XML Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
Introduction to XML: Yong Choi CSU Bakersfield.
XML Extensible Markup Language. Today: Imagine Cup –Wednesday, February 2nd from 6-8 pm in Lally Hall, Room 104, we will have a representative on campus.
1 HTML’s Transition to XHTML. 2 XHTML is the next evolution of HTML Extensible HTML eXtensible based on XML (extensible markup language) XML like HTML.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
Introduce of XML Xiaoling Song CS157A. What is XML? XML stands for EXtensible Markup Language XML stands for EXtensible Markup Language XML is a markup.
ECA 228 Internet/Intranet Design I Intro to XML. ECA 228 Internet/Intranet Design I HTML markup language very loose standards browsers adjust for non-standard.
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
Week 1.  Phillip Chee   Ext.1214 
What is XML? XML stands for EXtensible Markup Language
CREATED BY ChanoknanChinnanon PanissaraUsanachote
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
 XHTML is aimed to replace HTML  XHTML is almost identical to HTML 4.01  XHTML is a stricter and cleaner version of HTML  XHTML is HTML defined as.
Pemrograman Berbasis WEB XML -Aurelio Rahmadian- Sumber: w3cschools.com.
XML Technologies Surekha Akula
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
Introduction to XML 1. XML XML started out as a standard data exchange format for the Web Yet, it has quickly become the fundamental instrument in the.
Web page - A Web page is a simple text file that contains a set of HTML tags (code) that describe (to the browser) what should go on a web page. It may.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
XML eXtensible Markup Language. Topics  What is XML  An XML example  Why is XML important  XML introduction  XML applications  XML support CSEB.
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
E0262 – MIS – Multimedia Storage Techniques XML (Extensible Markup Language  XML is a markup language for creating documents containing structured information.
1 Dr Alexiei Dingli XML Technologies XML. 2 XML stands for EXtensible Markup Language XML is a markup language much like HTML XML was designed to carry.
Waqas Anwar Next SlidePrevious Slide. Waqas Anwar Next SlidePrevious Slide XML XML stands for EXtensible Markup Language.
XML Documents Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Elements Attributes Comments PI Document.
WEB APPLICATION DEVELOPMENT For More visit:
Introduction to XML This presentation covers introductory features of XML. What XML is and what it is not? What does it do? Put different related technologies.
17 Apr 2002 XML Syntax: Documents Andy Clark. Basic Document Structure Element tags – Elements have associated attributes Text content Miscellaneous –
An Introduction to XML Sandeep Bhattaram
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
What it is and how it works
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
XML Basics A brief introduction to XML in general 1XML Basics.
XML and SVG from PQL By Dave Doulton Computing Services University of Southampton.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
Well Formed XML The basics. A Simple XML Document Smith Alice.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes The Web Wizard’s Guide to XHTML by Cheryl M. Hughes.
What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
XML. HTML Before you continue you should have a basic understanding of the following: HTML HTML was designed to display data and to focus on how data.
Introduction to XML Jussi Pohjolainen TAMK University of Applied Sciences.
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
XML Introduction to XML Extensible Markup Language.
XML intro. What is XML? XML stands for EXtensible Markup Language XML is a markup language much like HTML XML was designed to carry data, not to display.
Unit 4 Representing Web Data: XML
XML QUESTIONS AND ANSWERS
Chapter 7 Representing Web Data: XML
Allyson Falkner Spokane County ISD
Presentation transcript:

XML Technologies XML Basics  What is XML?  Why use XML?  How to write XML? 1XML Technologies David Raponi

2 Week 1: XML Basics > 1. What is XML? 1. What is XML? eXtensible Markup Language Markup: text + annotations  This is a sentence. Extensible: A language for creating new markup languages  I can make up anything

3XML Technologies David Raponi Week 1: XML Basics > 1. What is XML? An example: Romolo Silvia David

4XML Technologies David Raponi Week 1: XML Basics > 1. What is XML? What it is and what it isn’t… It is self-descriptive (commonsense tag names) Focuses on STORING and DEFINING data Focuses also on ORGANIZING data for easy manipulation It does not handle displaying of data… that’s HTML’s job It is not a processing “code” of any kind It is not a version of XHTML

5XML Technologies David Raponi Week 1: XML Basics > 1. What is XML? Advantages of XML Easily read by humans Simple and lightweight Bridges a gab between simple lists and overkill databases Platform independent Lots of technologies exist to work with XML Anal-retentively dependable!

6XML Technologies David Raponi Week 1: XML Basics > 1. What is XML? Markup and so much more… To Summarize, XML is: - a markup language that allows for simple and contextual storage of data that can be easily read and manipulated. - but on its own, it doesn’t actually DO anything. It’s just a bunch of information, like a grocery list.

7XML Technologies David Raponi Week 1: XML Basics > 1. What is XML? Markup and so much more… Another amazing aspect: XML can be used to create new markup languages This is because the tags are named however you wish, and then “definitions” (next week) can be made for those new tags.

8XML Technologies David Raponi Week 1: XML Basics > 1. What is XML? Example revisited: What do we notice? Romolo Silvia David

9XML Technologies David Raponi Week 1: XML Basics > 1. What is XML? Initial observations: 1.Requires an initial declaration 2.Made up of elements (open + close tags) 3.Tags may contain attributes 4.There is a nesting structure 5.Can can create your own elements (only a very few naming restrictions apply)

10XML Technologies David Raponi Week 1: XML Basics > 1. What is XML? A quick comparison: Romolo David Silvia Q: Is it all the same? Does it matter? Is there another way to write it out?

11XML Technologies David Raponi Week 1: XML Basics > 2. Why use XML? 2. Why use XML? Since XML is… Lightweight Self-definable Platform independent Great for organizing information … we can…

12XML Technologies David Raponi Week 1: XML Basics > 2. Why use XML? What can you do with XML? 1.Create Twitter feeds 2.Probably everything on Facebook 3.Make scalable graphics (vector images) 4.Run an entire website (no HTML files!) 5.Host fun XML parties… ? 6.Program Documents (get ready to have your minds blown…) 7.Transfer data quickly (webservices)

13XML Technologies David Raponi Week 1: XML Basics > 2. Why use XML? What can you do with XML? 8.Keep data and design separate (quick and simplified updates!) 9.Quick storage of data (mini-database) 10.Sending out and reading in info (RSS, podasts) 11.Quick referencing (saving settings) 12.Smaller scale CMSs 13.Blogs

14XML Technologies David Raponi Week 1: XML Basics > 2. Why use XML? When NOT to use XML? 1.When a dedicated database is warranted 2.When display is most important factor 3.Basically whenever another technology can get the job done faster.

15XML Technologies David Raponi Week 1: XML Basics > 2. Why use XML? When NOT to use XML? Please note: you will not use every technology you learn in this program on a daily basis. It very much depends on your future career. Making simple sites? Not much XML involved. Working for dedicated web services, data industries (banks, hospitals, etc) or in IT? Lots of XML!

16XML Technologies David Raponi Week 1: XML Basics > 3. How to write XML? 3. How to write XML 1.Declaration and root 2.Reserved words 3.Special characters 4.Elements and attributes 5.Nesting 6.Must be “Well-Formed”

17XML Technologies David Raponi Week 1: XML Basics > 3. How to write XML? Declaration 1.Declaration and the root 2.Reserved words 3.Special characters 4.Elements and attributes 5.Nesting 6.Must be “Well-Formed” Each XML document must begin with a declaration. This tells the program (in our case, the browser) to interpret it as XML (no closing tag!) Options include: encoding=“utf-8” (or “ISO ”) standalone=“yes” (or “no”) o Yes: the DTD is located internally o No: the DTD is external (default)

18XML Technologies David Raponi Week 1: XML Basics > 3. How to write XML? Declaration 1.Declaration and the root 2.Reserved words 3.Special characters 4.Elements and attributes 5.Nesting 6.Must be “Well-Formed” Each XML document must also have a root element within which everything else is found. … </elementName

19XML Technologies David Raponi Week 1: XML Basics > 3. How to write XML? 3. How to write XML 1.Declaration and the root 2.Reserved words 3.Special characters 4.Elements and attributes 5.Nesting 6.Must be “Well-Formed” There are no reserved words in XML! However, you cannot: Begin with a number Begin with punctuation Have any spaces Begin with “xml” Good: Bad:

20XML Technologies David Raponi Week 1: XML Basics > 3. How to write XML? 3. How to write XML 1.Declaration and the root 2.Reserved words 3.Special characters 4.Elements and attributes 5.Nesting 6.Must be “Well-Formed” There are a few characters that should be replaced as follows: &  & <  < >  > ‘  &apos; “  &quote; (except for in attributes) I’m already lying to you: only the first two (& and <) are strict no-nos. Everything else is “good practice” to make life easier.

21XML Technologies David Raponi Week 1: XML Basics > 3. How to write XML? 3. How to write XML 1.Declaration and the root 2.Reserved words 3.Special characters 4.Elements and attributes 5.Nesting 6.Must be “Well-Formed” An element consists of an opening and closing tag (like in HTML) of the same case. An element can contain any number of attributes with values wrapped in matching quotes. Good: Bad: Note: whenever possible, avoid attributes. They should be reserved for “metadata”.

22XML Technologies David Raponi Week 1: XML Basics > 3. How to write XML? 3. How to write XML 1.Declaration and the root 2.Reserved words 3.Special characters 4.Elements and attributes 5.Nesting 6.Must be “Well-Formed” Open and close tags as you would in HTML, that is: In the proper order. My Title  This causes kittens to explode  My Title  Kittens live another day

23XML Technologies David Raponi Week 1: XML Basics > 3. How to write XML? 3. How to write XML 1.Declaration and the root 2.Reserved words 3.Special characters 4.Elements and attributes 5.Nesting 6.Must be “Well-Formed” To be well-formed, XML must PHYSICALLY be written correctly. It may or may not live up to the pre-determined requirements (it will not validate), but it is at least an honest and true XML document: Must include initial declaration Must have a root element that captures everything else All tags must be closed All attribute values must be in quotes No illegal characters present No illegally named elements

24XML Technologies David Raponi Week 1: XML Basics > 3. How to write XML? Final remarks Remember, XML doesn’t just store data, it organizes it. The organizational approach of an XML document should be carefully considered since the structure itself can also be thought of as data. HTML JS 1 JS 2 CSS PHP HTML JS 1 JS 2 CSS PHP Technically, the data is the same, but the 2 nd structure reveals more information!