UFIEKG-20-2 / 06 / Week 131 Data, Schemas and Applications Term 2 Week 13.

Slides:



Advertisements
Similar presentations
CG0119 Web Database Systems Parsing XML: using SimpleXML & XSLT.
Advertisements

XML: Extensible Markup Language
An Introduction to XML Based on the W3C XML Recommendations.
1 XML Data Management Course Outline and Organisation Werner Nutt.
UFCEKG-20-2 Data, Schemas & Applications Lecture 6 The Web of Data, API’s & PHP.
WEB 2.0. What we are speaking about… Transformation of WEB, the WEB 2.0 –New generation of websites… –Importance of Open Data… –Importance of Users… –Web.
1 CP3024 Lecture 9 XML revisited, XSL, XSLT, XPath, XSL Formatting Objects.
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.
ICT Issues Social Networking. Social Networking Social networking: the interaction between a group of people who have a common interest, eg. music. Popular.
XML eXtensible Markup Language ©2010 Paula Schales.
DSA week 161 XML Data and Schemas DSA Week 16. DSA week 162 News Bloglines wall of images –
Week 23 - Revision1 Week 23 Revision DSA. Week 23 - Revision2 Agenda Section A: Multiple choice Section B: Problem-oriented questions Topics for revision.
AJAX & By – Anupama Sharma. Defining Ajax Ajax isn’t a technology. It’s really several technologies, each flourishing in its own right, coming together.
F DIGITAL MEDIA: COMMUNICATION AND DESIGN INTRODUCTION TO XML AND XHTML.
Mannheim Web 2.0 Systems Development. Plan Being an early-adopter Web 2.0 technologies Mashups Google Earth and kml XQuery and eXist.
Cornell CS 502 More XML XML schema, XPATH, XSLT CS 502 – Carl Lagoze – Cornell University.
Data, schemas and Applications UFIEKG-20-2 Chris Wallace Praminda Caleb-Solly.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
Tutorial 11 Creating XML Document
RSS RSS is a method that uses XML to distribute web content on one web site, to many other web sites. RSS allows fast browsing for news and updates.
Manohar – Why XML is Required Problem: We want to save the data and retrieve it further or to transfer over the network. This.
PHP with XML Dequan Chen and Narith Kun ---Term Project--- for WSU 2010 Summer Course - CS366 s:
UFCEKG-20-2 Data, Schemas & Applications Lecture 4 Server Side Scripting & PHP.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Example XML Applications/Languages. Objectives To Review uses of XML To investigate some Language applications of XML XHTML RSS WML Web Services.
School of Computing and Management Sciences © Sheffield Hallam University To understand the Oracle XML notes you need to have an understanding of all these.
XP New Perspectives on XML Tutorial 6 1 TUTORIAL 6 XSLT Tutorial – Carey ISBN
Representing Web Data: XML CSI 3140 WWW Structures, Techniques and Standards.
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
WORKING WITH XSLT AND XPATH
XP New Perspectives on XML, 2 nd Edition Tutorial 10 1 WORKING WITH THE DOCUMENT OBJECT MODEL TUTORIAL 10.
JavaScript is a client-side scripting language. Programs run in the web browser on the client's computer. (PHP, in contrast, is a server-side scripting.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
1 XML Data Management Course Outline and Organisation Werner Nutt.
Representing Web Data: XML CSI 3140 WWW Structures, Techniques and Standards.
Introduction to XML Extensible Markup Language. What is XML XML stands for eXtensible Markup Language. A markup language is used to provide information.
Web Services Week 7 Aims: A detailed look at the underlying mechanisms for communication between web services Objectives: SOAP, WSDL, UDDI.
Electronic Commerce COMP3210 Session 4: Designing, Building and Evaluating e-Commerce Initiatives – Part II Dr. Paul Walcott Department of Computer Science,
What is RSS? And how do I use it to make my life easier.
UFCEKG-20-2 Data, Schemas & Applications Lecture 1 Module Introduction & Outline.
Weekend MS CS Program Internet and Web Technologies COT 5930 Web Project Development - Ajax Dr. Roy Levow, Associate Chair & Professor
Presentation Topic: XML and ASP Presented by Yanzhi Zhang.
Date : 3/3/2010 Web Technology Solutions Class: Application Syndication: Parse and Publish RSS & XML Data.
CA Professional Web Site Development Class 2: Anatomy of a Web Site and Web Page & Intro to HTML.
XML Basics A brief introduction to XML in general 1XML Basics.
1 Alternative view on Internet Computing Web 1.0 –Web 1.0 is first generation, Web Information based. Driven by Information provider. Web 2.0 Ajax enabled.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
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 –
COP 3813 Intro to Internet Computing Prof. Roy Levow XML.
CO1552 – Web Application Development Further JavaScript: Part 1: The Document Object Model Part 2: Functions and Events.
XML - eXtensible Markup Language Who Am I? Name: Jared Rypka-Hauer Owner: Continuum Media Group, LLC Adobe Community Expert – ColdFusion 9 years ColdFusion.
RSS Interfaces and Standards Chander Iyer. Really Simple Syndication (RSS) Web data format providing users with frequently updated content. Make a collection.
Working with XML. Markup Languages Text-based languages based on SGML Text-based languages based on SGML SGML = Standard Generalized Markup Language SGML.
Creating Databases applications for the Web: week 2 Basic HTML review, forms HW: Identify unique source for asp, php, Open Source, MySql, Access.
Lecture 23 XQuery 1.0 and XPath 2.0 Data Model. 2 Example 31.7 – User-Defined Function Function to return staff at a given branch. DEFINE FUNCTION staffAtBranch($bNo)
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
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.
Unit 4 Representing Web Data: XML
XML QUESTIONS AND ANSWERS
Server-Side Application and Data Management IT IS 3105 (FALL 2009)
“Real Simple Syndication” (RSS)
XML in Web Technologies
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Introduction to Internet Programming
Chapter 7 Representing Web Data: XML
XML Problems and Solutions
Introduction to World Wide Web
More XML XML schema, XPATH, XSLT
Presentation transcript:

UFIEKG-20-2 / 06 / Week 131 Data, Schemas and Applications Term 2 Week 13

UFIEKG-20-2 / 06 / Week 132 Agenda Plan for the term Coursework RSS as an example of an XML ‘standard’ Recap on XML –Naming the parts –Tree structure Namespaces XML processing

UFIEKG-20-2 / 06 / Week 133 Lecture plan Focus on XML and XML processing Contrast data representation in relational database and XML formats Develop small mash-ups, multi-media and multi modal web applications

UFIEKG-20-2 / 06 / Week 134 Coursework Individual Work sheets in tutorials will contribute to coursework Structure the workload through the term to avoid overload last two weeks of term Try to keep the final task of manageable yet rewarding size

UFIEKG-20-2 / 06 / Week 135 RSS (1) Problem: –I want to disseminate news about my project/company, and allow interested people to read it. –e.g. the module blog needs to have new items read by students and staff Solution 1 –I publish a page of news on my website Problems 1 –how do readers know when its changed –content cannot be computer-processed

UFIEKG-20-2 / 06 / Week 136 RSS (2) Solution 2 –I make up my own XML vocabulary –Generate a file for a program to consume Problem 2 – A reader has to be able to understand my format – and many others! –How is this file discovered?

UFIEKG-20-2 / 06 / Week 137 RSS (3) Solution 3 –Standardise on one (or 4!) general formats of news feed, so that any reader can understand it –RSSRSS Really Simple Syndication Rich Site Summary Characteristics –Basic content are items in reverse chronological order –Some basic tags such as links back to the full story.

UFIEKG-20-2 / 06 / Week 138 RSS (4) Problems for the reader –I want to read news from many sources –I want to be able to distinguish items I’ve read for ones I haven’t –I want to know when new items are published –I want to be able to find feeds which are interesting to me –I want to restrict the items in the feed to those which interest me Problem for the provider –Many readers continually asking for the latest news will generate a high demand on providers Partial Solution –Reader needed which Is stateful – remembers what items have been read Integrates multiple feeds into one compendium Polls news provider on a regular basis –Feed integrators Bloglines, Google Reader, reduce the load on the provider and provide some filtering How it works –SlideshowSlideshow

UFIEKG-20-2 / 06 / Week 139 Understanding an XML file Naming the parts – indicate on the listing one example of each of the following: –Document –Root Element –Element Name Content –Attribute Name Value –Character Entity Reference –Processing Instruction –Character set

UFIEKG-20-2 / 06 / Week 1310 XML as a tree Draw a tree structure of this document. What is the parent on the item element? What are the children of the rss element?

UFIEKG-20-2 / 06 / Week 1311 Namespaces Problem: To allow multiple languages (which may use the same word for different things) to be merged in one document. –Solution : mixing HTML and PHP in the same document using boundary markers: – to leave –Namespaces are another solution – each item is qualified by a namespace identifier XML Namespaces –In the document, a prefix to the tag qualifies the tag name –The prefix is just an abbreviation – what matters is the URI it is associated with by a pseudo attribute e.g. xmlns:geo=“ –Default namespace may be set on an element to avoid repeating it on all children xmlns='

UFIEKG-20-2 / 06 / Week 1312 Transforming XML A common task in web applications is to take one or more XML documents and transform the information to a different structure Transform a.XML b.XML Filter, restructure, calculate

UFIEKG-20-2 / 06 / Week 1313 XML transformation Input –A local file –A dynamic file (e.g. via AJAX) –A remote file (accessed by HTTP) –A part of a database Transform –JavaScript and DOM - see ZIP example –XSLT (an XML vocabulary) –Java + XML (JAXP) –PHP + SimpleXML –XQuery –…–… Location On the server On the client In the database Requires ‘well-formed XML’

UFIEKG-20-2 / 06 / Week 1314 PHP and XML SimpleXML –Load document and construct a tree of objects in one operation $rss = simplexml_load_file(..) –CEMS server behind a proxy so access is a little more complicated –Access child elements using object reference notation $item = $rss ->channel ->item –Access child elements in a namespace $geo = $item->children(“ i.e. the namespace URI, not the prefix

UFIEKG-20-2 / 06 / Week 1315 Exercise BBC weather via RSS –Simple PHP coding exercise to transform the BBC feed to a format for the Foyer monitor Problems –How to include domain-specific data such as temperature, location –How to use the same server script to create a desktop, monitor and printed display

UFIEKG-20-2 / 06 / Week 1316 Next week Lecture –XPath provides allows complex selection of elements –XSLT is an XML transformation language Exercise –The geo namespace elements provide data on the location of the weather. –Locations are defined as a latitude value + a longitude value. –We can use this data to create place marks in Google Earth by transforming to kml (Keyhole Markup Language)