Web Computing. Revision Notes

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

Introduction Syntax and Usage XML Databases Java Tutorial XML. November 5, 2008 XML

AIM. 10 September

Session 23 XML. XML Reading and Reference. Reading. Reference: Session 23 XML. Robert Kelly, 2018

XML for Android Developers. partially adapted from XML Tutorial by W3Schools

XML (Extensible Markup Language)

XML extensible Markup Language

Software Engineering Methods, XML extensible Markup Language. Tutorial Outline. An Example File: Note.xml XML 1

The <schema> Element. <?xml version="1.0"?> <xs:schema>... </xs:schema>

Bioinforma)cs Resources XML / Web Access

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

but XML goes far beyond HTML: it describes data

Ontologies aka: your metadata elements

MANAGING INFORMATION (CSCU9T4) LECTURE 2: XML STRUCTURE

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

Java EE 7: Back-end Server Application Development 4-2

Intro to XML. An Introduction to extensible Markup Language

XML: extensible Markup Language

XML. Jonathan Geisler. April 18, 2008

:38:00 1 / 14

Govt. of Karnataka, Department of Technical Education Diploma in Computer Science & Engineering. Fifth Semester. Subject: Web Programming

Marker s feedback version

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

CLIENT-SIDE XML SCHEMA VALIDATION

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

TUTORIAL QUESTION BANK

CS Final Exam Review Suggestions - Spring 2018

CENG 256 Internet Programming Draft

COMP9321 Web Application Engineering

COMP9321 Web Application Engineering

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Javascript Validator Xml Schema Eclipse Plugin

Week 5 Aim: Description. Source Code

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

WEB PROGRAMMING LAB. Course Code: 15CT1123 L T P C. (Common to CSE&IT)

Languages of the WEB. Jukka K. Nurminen

The XML Metalanguage

COMP9321 Web Application Engineering

XML. Objectives. Duration. Audience. Pre-Requisites

User Interaction: jquery

Web Services. The Pervasive Internet

IT6503 WEB PROGRAMMING. Unit-I

Programming the World Wide Web by Robert W. Sebesta

DICOM Structured Reporting: Implementation Experience

SIR C.R.REDDY COLLEGE OF ENGINEERING, ELURU DEPARTMENT OF INFORMATION TECHNOLOGY LESSON PLAN

Shankersinh Vaghela Bapu Institue of Technology

IT2353 WEB TECHNOLOGY Question Bank UNIT I 1. What is the difference between node and host? 2. What is the purpose of routers? 3. Define protocol. 4.

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

CSC309 Midterm Exam Summer 2007

XML. Document Type Definitions XML Schema. Database Systems and Concepts, CSCI 3030U, UOIT, Course Instructor: Jarek Szlichta

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

TIME SCHEDULE MODULE TOPICS PERIODS. HTML Document Object Model (DOM) and javascript Object Notation (JSON)

XML Tools in Visual Studio Working with XML Data XML Editor XML Schema Designer Security Considerations when Working with XML Data Debugging XSLT

XML + JSON. Internet Engineering. Spring Bahador Bakhshi CE & IT Department, Amirkabir University of Technology

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

Web Engineering (CC 552)

XML Metadata Standards and Topic Maps

2006 Martin v. Löwis. Data-centric XML. XML Schema (Part 1)

CSE 336. Introduction to Programming. for Electronic Commerce. Why You Need CSE336

Introduction to Semistructured Data and XML. Overview. How the Web is Today. Based on slides by Dan Suciu University of Washington

Internet and Web Applications Introduction

XML Schema and alternatives

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

extensible Markup Language

All About <xml> CS193D, 2/22/06

CSC Web Technologies, Spring Web Data Exchange Formats

UNIT -I PART-A Q.No Question Competence BTL

Driver Manual. FS HTTP XML Driver

Ch04 JavaServer Pages (JSP)

Internet Technologies 11-XML. F. Ricci 2010/2011

XML and Web Services

Ontologies and Schema Languages on the Web. Kaveh Shahbaz

ActiveVOS Fundamentals

extensible Markup Language

XML. Presented by : Guerreiro João Thanh Truong Cong

Call: Core&Advanced Java Springframeworks Course Content:35-40hours Course Outline

IT2353 Web Technology Important Questions 2 Marks and 16 Marks Unit 1 Part A 1. Differentiate Internet with Intranet. 2. What are HTML tags? 3.

Network Configuration Protocol

White Paper. Fabasoft Integration for Novell GroupWise. Fabasoft Folio 2017 R1 Update Rollup 1

PHP. MIT 6.470, IAP 2010 Yafim Landa

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

Request for Comments: Tail-f Systems December Partial Lock Remote Procedure Call (RPC) for NETCONF

Basics of Web Technologies

Notes. Any feedback/suggestions? IS 651: Distributed Systems

Data Presentation and Markup Languages

PHP & My SQL Duration-4-6 Months

XML Schema. Mario Alviano A.Y. 2017/2018. University of Calabria, Italy 1 / 28

Introduction to XML. XML: basic elements

Solution Sheet 5 XML Data Models and XQuery

Chapter 1: Getting Started. You will learn:

Certified Selenium Professional VS-1083

UNIT I Java Bean, HTML & Javascript

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

Web Programming Paper Solution (Chapter wise)

XML: some structural principles

The course also includes an overview of some of the most popular frameworks that you will most likely encounter in your real work environments.

SWAD-Europe Deliverable 6.3a Description of prototype implementation (documentation for deliverable 6.2)

SSC - Web applications and development Introduction and Java Servlet (I)

Oracle Utilities Opower Energy Efficiency Web Portal - Classic Single Sign-On

COMP9321 Web Application Engineering

Transcription:

Web Computing Revision Notes

Exam Format The format of the exam is standard: Answer TWO OUT OF THREE questions Candidates should answer ONLY TWO questions The time allowed is TWO hours Notes: You will not be expected to write large quantities of code in the exam, and the exact syntax is not essential to get full marks for any small programs.

Hints and tips Everything that we covered in the course may be in the exam. Write something for every question: I cannot give marks for a blank page, but I might be able to give partial marks for an attempt at a question. Use the time well: plan which questions you will answer, and spend some time at the end checking that you did indeed answer all the parts as fully as you can. Avoid writing essays: use bullet points, one for each point that you want to make when you want to write a lot. This usually means that you write less, and also makes it easier to mark.

How to revise: XML What is XML? Commit a small example to memory Practice defining XML for some data Relation to related systems: e.g. HTML Use of tags vs. attributes? Advantages of each, when should each be used? Be able to transform XML with attributes to XML without attributes, and vice-versa Namespaces: purpose and ability to put into use Verifying structure: DTD and schemas Generally: always try to illustrate your answer with a concrete examples.

Question 1 Design an XML language for representing simple messages (notes, like post-it notes). These should contain who it to for, who it is from, the title of the note, and the message of the note. List the tags that you would use, indicating any attributes that you would need. <note> <to>alice</to> <from>bob</from> <heading>shopping</heading> <body>don t forget to do the shopping!</body> </note>

Question 2 Outline two different technologies for verifying the structure of an XML document. Illustrate your answer with the XML from the previous question. DTD: <?xml version="1.0"?> <!DOCTYPE note [ <!ELEMENT note (to,from,heading,body)> <!ELEMENT to (#PCDATA)> <!ELEMENT from (#PCDATA)> <!ELEMENT heading (#PCDATA)> <!ELEMENT body (#PCDATA)> ]>

Question 2 Schemas: <?xml version="1.0"?> <xs:schema xmlns:xs="http://www.w3.org/2001/xmlschema" targetnamespace="http://www.somesite.com" xmlns="http://www.somesite.com" elementformdefault="qualified"> <xs:element name="note"> <xs:complextype> <xs:sequence> <xs:element name="to" type="xs:string"/> <xs:element name="from" type="xs:string"/> <xs:element name="heading" type="xs:string"/> <xs:element name="body" type="xs:string"/> </xs:sequence> </xs:complextype> </xs:element> </xs:schema>

Question 2 DTDs have a number of limitations when it comes to document validation DTDs cannot fully constrain the type of data in an element DTDs are too restrictive with respect to the order in which elements are presented. For example, the element declaration <!ELEMENT date (day, month, year)> would make the DTD reject any document whose date element is not given in the order day, month and year in addition, DTDs have a somewhat different syntax to plain XML

Question 3 XML can be transformed in a number of different ways: state them and state if they are Server-side or Client-side transformations? XSLT DOM JavaScript Ability to put XSLT into practice (again, commit a small example to memory)

Question 4 1 Briefly outline the main features of the HTTP protocol. Include in your answer the main status codes. 2 Describe the differences between the methods GET and POST. As part of your answer, explain one way in which parameters can be passed from a client application to a HTTP server. see Lecture 8 3 Briefly describe one way in which the HTTP protocol can overcome the fact that it is a stateless protocol. Cookies 4 Explain how Apache Tomcat will serve a JSP page.

Question 5 It is proposed to use XML to represent addresses of people (name, address) and addresses of servers (name, address). Explain how you could do this with one XML language with namespaces.

Question 5 <?xml version="1.0"?> <department xmlns="http://somesite/addresses" xmlns:ip="http://somesite/internet"> <name>mr Smith</name> <address> <street>the Strand</street> <city>london</city> <country>uk</country> </address> <ip:server> <ip:name>informatics web</ip:name> <ip:address>195.238.237.142</ip:address> </ip:server> </department>

Question 6 An application was developed with HTML forms to allow the addresses from the previous question to be entered. Explain how fields can be validated. Your answer should state how the validation is done, which technologies are used, and whether it is server or client who does the validation. Demonstrate by giving the validation of IP addresses.

Question 7 Explain what DOM is, and show how it can be used both by the client and the server. Document Object Model,... Java API (server side) JavaScript (client side)

Topics Don t forget: any part of the course might be in the exam. XML (ordered labelled tree), HTML CSS: selectors, some properties (e.g. different ways to represent colours, etc.) DTD and Schemas DOM, XSLT JavaScript: regular expressions, DOM AJAX HTTP, cookies (also JSON, localstorage, etc.) Sevlets and JSP Comparison and appreciation of technologies Good Luck!