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.

Slides:



Advertisements
Similar presentations
XML-XSL Introduction SHIJU RAJAN SHIJU RAJAN Outline Brief Overview Brief Overview What is XML? What is XML? Well Formed XML Well Formed XML Tag Name.
Advertisements

Chapter 7 An Introduction to XML.
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
History Leading to XHTML
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.
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
CSCI 7818 (Topics in Software Engineering) Web Infrastructure, Services, and Applications Document Type Definition (DTD) Author: Lukasz Kurgan.
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.
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 1 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
Introduction to XML This material is based heavily on the tutorial by the same name at
XHTML, XML and XSLT. XHTML – EXtensible HyperText Markup Language is HTML defined as an XML application is a stricter and cleaner HTML is compatible to.
Topics The "bigger picture" –The "XML sales pitch" –XML/XHTML vs. SGML/HTML –XML in electronic publishing –XML and the future, web 2.0 XML basics: –Building.
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.
XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
XP Tutorial 9New Perspectives on Creating Web Pages with HTML, XHTML, and XML 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
XML CPSC 315 – Programming Studio Fall 2008 Project 3, Lecture 1.
XML - DTD. The building blocks of XML documents Elements, Tags, Attributes, Entities, PCDATA, and CDATA.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
XML Syntax - Writing XML and Designing DTD's
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
 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,
Session IV Chapter 9 – XML Schemas
Processing of structured documents Spring 2002, Part 2 Helena Ahonen-Myka.
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
JSTL, XML and XSLT An introduction to JSP Standard Tag Library and XML/XSLT transformation for Web layout.
E0262 – MIS – Multimedia Storage Techniques XML (Extensible Markup Language  XML is a markup language for creating documents containing structured information.
XML - DTD Week 4 Anthony Borquez. What can XML do? provides an application independent way of sharing data. independent groups of people can agree to.
CIS 451: XML DTDs Dr. Ralph D. Westfall February, 2009.
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.
XML Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
17 Apr 2002 XML Syntax: Documents Andy Clark. Basic Document Structure Element tags – Elements have associated attributes Text content Miscellaneous –
Lecture 16 Introduction to XML Boriana Koleva Room: C54
1 Introduction to XML XML stands for Extensible Markup Language. Because it is extensible, XML has been used to create a wide variety of different markup.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
XML Basics A brief introduction to XML in general 1XML Basics.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
XML A Language Presentation. Outline 1. Introduction 2. XML 2.1 Background 2.2 Structure 2.3 Advantages 3. Related Technologies 3.1 DTD 3.2 Schemas and.
Web Technologies Lecture 4 XML and XHTML. XML Extensible Markup Language Set of rules for encoding a document in a format readable – By humans, and –
Introduction to DTD A Document Type Definition (DTD) defines the legal building blocks of an XML document. It defines the document structure with a list.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
XML DTD. XML Validation XML with correct syntax is "Well Formed" XML. XML validated against a DTD is "Valid" XML.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
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 Notes taken from w3schools. What is XML? XML stands for EXtensible Markup Language. XML was designed to store and transport data. XML was designed.
1 Extensible Stylesheet Language (XSL) Extensible Stylesheet Language (XSL)
1 Introduction to XML Babak Esfandiari. 2 What is XML? introduced by W3C in 98 Stands for eXtensible Markup Language it is more general than HTML, but.
Extensible Markup Language (XML) Pat Morin COMP 2405.
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.
XML BASICS and more…. What is XML? In common:  XML is a standard, simple, self-describing way of encoding both text and data so that content can be processed.
Unit 4 Representing Web Data: XML
CIS 228 The Internet 9/20/11 XHTML 1.0.
The XML Language.
Chapter 7 Representing Web Data: XML
Web Programming Maymester 2004
Presentation transcript:

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 for the Imagine Cup Program. Pizza and soda will be provided. Homework #1 XML In class: define your class schedule in XML (groups ~10) Tuesday: XSLT (reformatting XML)

Standards Help or hinder innovation? Think about it

Standards –HTML, CSS, XML, XPATH, SVG, Services, Semantic Web –URNs, DNS, IP Addresses –HTTP, TCP/IP –Ethernet, , MAC addresses

Standards NTSC –1936, industry recommendation –1941, B&W standard –1950, color standard –2009, FCC required shutdown of NTSC broadcast

Standards Standards in Physical Infrastructure –European vs. US cell phone technology adoption rates (one euro standard v. 3 in the US) –Gas Stations & alternate fuels for personal transportation

Standards Help or hinder innovation? Ok, lets have a discussion

XML Organize Data –Consistent Syntax –Semantic Free

Stuff we do with XML machine to machine transfer of models & data data storage (best for storing data in a tree format) sending data from the application to the presentation layer

KML / AJAX Example Google maps consumes KML Outputs JS / XHTML / CSS Structured data can be reused.

An Example XML Doc

Some Common XML types Atom –Which is really cool because it can hold other formats within it RSS Itunes Library KML XHTML…

XHTML A specific flavor of XML Defined by a DTD (Document Type Definition) – strict.dtd

XML documents must be: Well-formed –Adhere to XML syntax rules Valid –Adhere to the rules in the specified DTD

Root / Parents Elements must have a parent Documents must have one document root is the only top level element. It is the document root

XML Syntax Rules Elements must have a closing tag: –... – Self closing tags

Proper Nesting of Elements: blah  blah 

Element Naming Rules Elements are lowercase only Elements must not start with “xml” Element names should not contain “-” or “:”

Attributes Elements describe data Attributes describe elements Attributes must be in quotes Examples

Namespaces Used to prevent element or attribute name or ‘meaning’ collisions Example  Namespace collision  Two namespaces namespace nameelement name

Namespaces Pointing to a namespace xmlns attribute In –an element –global definition

Namespaces In an element (applies to all of its children)

Namespaces Global <html xmlns:h=“ xmlns:m=" >.. Some text

Namespaces + Standards Decisions are expensive Use a preexisting format (no limit to number of namespaces on a page) xml-guidelines/ xml-guidelines/

DTD Document Type Definition Internal or external file describing list of elements, attributes and their relationships. Machine readable

DTD Building Blocks Elements (describe data) Attributes (describe elements) PCDATA (the stuff between tags that gets parsed) CDATA - (data between tags that contains other data that you do not want parsed) Entities - (special items, such as & )

DTD Elements Defining an element element name type

DTD Elements Defining an empty element (no closing tag) Defining an element with children

DTD Attributes Setting a default setting the default colspan value to 1 in a element

DTD Attributes required attribute & implied attribute XML author must include a value for page to validate author does not have to include attribute/value and we aren't setting a default either

DTD & Standards Load: transitional.dtd transitional.dtd Look at line 273 What are the first children elements allowed inside

DTD & Standards Validator compares rules in the DTD with the XML implemented.

DTD Entities Exist in XML like this & + name + ; lt, jt, amp, apos, quot are supported by defualt DTD author can specify custom entities to operate as replacement variables –Example: &myname; –(replacement defined in the DTD)

XHTML Entities s.asphttp:// s.asp 5 ‘Reserved Characters’ must not be part of your page content … use HTML entities instead

Entities  JS or XSLT –Watch less than / greater than Input you don’t control –Watch everything!! Wrap data in CDATA

Entities  Wrap data in CDATA (will not be parsed)

Entities  hi ]]> Would display as hi

Entities  <?PHP $good = htmlentities ($bad); ?>