User Interaction: XML and JSON

Similar documents
User Interaction: XML and JSON

User Interaction: XML and JSON

User Interaction: XML and JSON

EXtensible Markup Language XML

11. EXTENSIBLE MARKUP LANGUAGE (XML)

Grading for Assignment #1

XML (Extensible Markup Language)

INTERNET PROGRAMMING XML

XML (Extensible Markup Language

markup language carry data define your own tags self-descriptive W3C Recommendation

Extensible Markup Language (XML) Hamid Zarrabi-Zadeh Web Programming Fall 2013

COMP9321 Web Application Engineering. Extensible Markup Language (XML)

What is XML? XML is designed to transport and store data.

MODULE 2 HTML 5 FUNDAMENTALS. HyperText. > Douglas Engelbart ( )

Web Technologies Present and Future of XML

XML. Jonathan Geisler. April 18, 2008

Web Programming Paper Solution (Chapter wise)

Introduction to XML. Chapter 133

Introduction to XML. M2 MIA, Grenoble Université. François Faure

(1) I (2) S (3) P allow subscribers to connect to the (4) often provide basic services such as (5) (6)

Chapter 2 XML, XML Schema, XSLT, and XPath

COMP9321 Web Application Engineering

Data formats. { "firstname": "John", "lastname" : "Smith", "age" : 25, "address" : { "streetaddress": "21 2nd Street",


Introduction to XML. XML: basic elements

extensible Markup Language (XML) Basic Concepts

2009 Martin v. Löwis. Data-centric XML. XML Syntax

EXtensible Markup Language XML

XHTML. XHTML stands for EXtensible HyperText Markup Language. XHTML is the next generation of HTML. XHTML is almost identical to HTML 4.

W3C XML XML Overview

Delivery Options: Attend face-to-face in the classroom or via remote-live attendance.

CSC Web Technologies, Spring Web Data Exchange Formats

Introduction to XML Zdeněk Žabokrtský, Rudolf Rosa

S emistructured Data & XML

Delivery Options: Attend face-to-face in the classroom or remote-live attendance.

CS7026: Authoring for Digital Media. The Evolution of Markup Languages

Semistructured data, XML, DTDs

Introduction. Web Pages. Example Graph

Comp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward

Structured documents

CHAPTER 1: GETTING STARTED WITH HTML CREATED BY L. ASMA RIKLI (ADAPTED FROM HTML, CSS, AND DYNAMIC HTML BY CAREY)

XML: and related technologies

Assigns a number to 110,000 letters/glyphs U+0041 is an A U+0062 is an a. U+00A9 is a copyright symbol U+0F03 is an

8. Markup Languages. Characteristics of Computer-Use Markup Languages. Markup. Markup language- History

The Semantic Web Revisited. Nigel Shadbolt Tim Berners-Lee Wendy Hall

x ide xml Integrated Development Environment Specifications Document 1 Project Description 2 Specifi fications

Some more XML applications and XML-related standards (XLink, XPointer, XForms)

Publishing Technology 101 A Journal Publishing Primer. Mike Hepp Director, Technology Strategy Dartmouth Journal Services

The main Topics in this lecture are:

Author: Irena Holubová Lecturer: Martin Svoboda

The Wonderful World of XML. Presented by Laurie K. Brooks AML Consulting, Inc.

Comp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward

Informatics 1: Data & Analysis

CSI 3140 WWW Structures, Techniques and Standards. Representing Web Data: XML

COMP9321 Web Application Engineering

Web Information System Design. Tatsuya Hagino

XML Metadata Standards and Topic Maps

HTML is a mark-up language, in that it specifies the roles the different parts of the document are to play.

Layered approach. Data

Layered approach. Data

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0

Copyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 7 XML

Well-formed XML Documents

- What we actually mean by documents (the FRBR hierarchy) - What are the components of documents

From administrivia to what really matters

Developing a Basic Web Page

XML: Introduction. !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... Directive... 9:11

XML: Extensible Markup Language

Introduction to XML. Asst. Prof. Dr. Kanda Runapongsa Saikaew Dept. of Computer Engineering Khon Kaen University

A network is a group of two or more computers that are connected to share resources and information.

Module 2 (III): XHTML

A tutorial report for SENG Agent Based Software Engineering. Course Instructor: Dr. Behrouz H. Far. XML Tutorial.

Agenda. XML Generics. XML for Java Developers G Session 1 - Main Theme Markup Language Technologies (Part I)

HTML CS 4640 Programming Languages for Web Applications

Semantic Web Lecture Part 1. Prof. Do van Thanh

Introduction to XML 3/14/12. Introduction to XML

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

MRK260. Week Two. Graphic and Web Design

Web Publishing with HTML

What is a web site? Web editors Introduction to HTML (Hyper Text Markup Language)

EMERGING TECHNOLOGIES. XML Documents and Schemas for XML documents

Web Programming Pre-01A Web Programming Technologies. Aryo Pinandito, ST, M.MT

7.1 Introduction. extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML

Languages in WEB. E-Business Technologies. Summer Semester Submitted to. Prof. Dr. Eduard Heindl. Prepared by

Markup Languages SGML, HTML, XML, XHTML. CS 431 February 13, 2006 Carl Lagoze Cornell University

Objectives. Introduction to HTML. Objectives. Objectives

The XML Metalanguage

Web Standards Mastering HTML5, CSS3, and XML

HTML. Mohammed Alhessi M.Sc. Geomatics Engineering. Internet GIS Technologies كلية اآلداب - قسم الجغرافيا نظم المعلومات الجغرافية

Tutorial 1 Getting Started with HTML5. HTML, CSS, and Dynamic HTML 5 TH EDITION

Semantic Web. XML and XML Schema. Morteza Amini. Sharif University of Technology Fall 94-95

extensible Markup Language: A Tutorial

languages for describing grammar and vocabularies of other languages element: data surrounded by markup that describes it

XML Structures. Web Programming. Uta Priss ZELL, Ostfalia University. XML Introduction Syntax: well-formed Semantics: validity Issues

E-Applications. XML and DOM in Javascript. Michail Lampis

Introduction to web development and HTML MGMT 230 LAB

CLASS DISCUSSION AND NOTES

Application Development in Web Mapping 1.

extensible Markup Language

XML APIs Testing Using Advance Data Driven Techniques (ADDT) Shakil Ahmad August 15, 2003

Transcription:

User Interaction: XML and JSON Asst. Professor Donald J. Patterson INF 133 Fall 2011 1

What might a design notebook be like? Cooler

What does a design notebook entry look like?

HTML and XML 1989: Tim Berners-Lee invents the Web with HTML as its publishing language Based on SGML Separates data from presentation No hypertext 1993: Mosaic browser is released 1994: World Wide Web Consortium is formed 1995: HTML 2.0 published IETF 1997: HTML 3.2 published by W3C 1995: Internet Explorer is released 1999: HTML 4.01 standardized and released 2000: XHTML standard released 2010: HMTL 5 Draft Standard Released

HTML and XML HTML XML XHTML HTML 5 XHMTL

HTML5 Support for SVG and MathML New tags add semantic meaning section article add multimedia processing canvas video audio Some tags deleted offline storage drag and drop document editing

HTML and XML HTML XML XHTML

HTML, XML and JSON Structured Data Formats that evolved with the web Text with a syntax applied They can represent a huge variety of information They enable data transport Different systems and technologies and programming languages depend on the syntax being standardized

What is XML? XML stands for extensible Markup Language XML was designed to in the context of separating data from display XML tags are not predefined You define your own tags XML is designed to be self-descriptive

The Difference Between XML and HTML XML designed to transport and store data It looks like HTML The focus is on what the data is HTML designed to display data it typically is broken-xml XHTML is HTML that conforms to XML standard Traditionally the focus was on how data looks

XML Does not DO Anything It is a data format A program must be written to manipulate the data To search the data To display the data To change the data Even though the data seems to be associated with a task it is still just data.

Schema Tags Characters

XML is Just Plain Text There is nothing fancy about the storage A program that can read and write text can read and write XML an XML-aware application Expects a valid tag structure Interprets the tags in a particular way

Schema Tags Characters

With XML You Invent Your Own Tags <from> and <to> are not defined anywhere official they are invented by the author There are no predefined tags In contrast, HTML has predefined tags <p> <href> etc., In XML the author defines the tags and the structure within the bounds of a valid XML document

XML is Not a Replacement for HTML XML complements HTML XHTML is an XML syntax compliant version of HTML It has tags defined by a standards body

XML Separates Data from HTML XML Simplifies Data Sharing XML Simplifies Data Transport XML Simplifies Platform Changes XML Makes Your Data More Available

XML is Used to Create New Internet Languages XHTML the latest version of HTML WSDL for describing available web services WAP and WML as markup languages for handheld devices RSS languages for news feeds RDF and OWL for describing resources and ontology SMIL for describing multimedia for the web

Well-formed XML XML uses a tree structure with a root element and child elements tags indicate the start and end of an element opening tag looks like this: <tag> a closing tag looks like this: </tag> A valid XML document has exactly one closing tag for every opening tag

bookstore book book book title author year price title author year price title author year price Everyday Italian Giada De Laurentiis 2005 30.00 Harry Potter J K. Rowling 2005 29.99 Learning XML Erik T. Ray 2003 39.95

bookstore book book book title author year price title author year price title author year price Everyday Italian Giada De Laurentiis 2005 30.00 Harry Potter J K. Rowling 2005 29.99 Learning XML Erik T. Ray 2003 39.95

Schema Tags Characters

Details All XML Elements Must Have a Closing Tag HTML <p>this is a paragraph <p>this is another paragraph XML <p>this is a paragraph</p> <p>this is another paragraph</p>

Details XML Tags are Case Sensitive <Message>This is incorrect</message> <message>this is correct</message> <Message>This is correct</message>

Details XML Elements Must be Properly Nested HTML might have this <b><i>this text is bold and italic</b></i> Valid XML requires this: <b><i>this text is bold and italic</i></b>

Details XML Documents Must Have a Root Element This is the top-level tag <root> <child> <subchild>...</subchild> </child> </root>

Details XML Nodes may have attributes Which describe the tag XML Attribute Values Must be Quoted Invalid: Valid:

Details XML Nodes may have attributes Which describe the tag XML Attribute Values Must be Quoted Invalid: Valid:

Details Special characters: If you put a < in your data it will mess up XML parsing <message>if salary < 1000 then</message> So 5 characters are special <, >, &,, <, >, &, &apos;, " <message>if salary < 1000 then</message>

Details Comments in XML <!-- This is a comment --> White-space is preserved <message>there is a lot of space</message>

Attributes and Elements are pretty interchangeable

On beyond XML XML validation Schemas like XML - DTD Namespaces XSLT transforms XML to HTML for viewing