PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Computer Science And Engineering

Size: px
Start display at page:

Download "PESIT Bangalore South Campus Hosur road, 1km before Electronic City, Bengaluru -100 Department of Computer Science And Engineering"

Transcription

1 INTERNAL ASSESSMENT TEST 2 : SOLUTION MANUAL Date : 03/10/17 Max Marks : 50 Subject & Code : Programming the Web / 10CS73 Section : A,B & C Name of Faculty : Ms. Ciji K R, Ms. Kanthimathi S Time : 8:30 to 10:00am What is a DTD? Explain the approach to declare elements, entities and attributes with examples. A Document Type Definition (DTD) is a set of structural rules called declarations, which specify a set of elements that can appear in the document as well as how and where these elements may appear DTDs also provide entity definitions Not all XML documents need a DTD, use of a DTD is related to the use of an external style sheet for XHTML documents A DTD can be embedded in the XML document whose syntax rules it describes, in which case it is called an internal DTD The alternative is to have the DTD stored in a separate file, in which case it is called an external DTD Syntactically, a DTD is a sequence of declarations. Each declaration has the form of a markup declaration: <!keyword > Four possible keywords can be used in a declaration: ELEMENT used to define tags; ATTLIST used to define tag attributes; ENTITY used to define entities; and NOTATION used to define data type notations. Element Declarations: Each element declaration in a DTD specifies the structure of one category of elements The declaration provides the name of the element whose structure is being defined, along with the specification of the structure of that element The form of an element declaration for elements that contain elements is as follows: <!ELEMENT element_name (list of names of child elements)> For ex., consider the following: <!ELEMENT memo (from, to, date, re, body)> 10

2 It is necessary to specify the number of times that a child element may appear This can be done by adding a modifier to the child element specification Child element specification modifiers Modifier Meaning + One or more occurrences * Zero or more occurrences? Zero or one occurrence Consider the following DTD declaration: <!ELEMENT person(parent+, age, spouse?, sibling*)> In this, the person element is specified to have the following children elements: one or more parent elements, one age element, possibly a spouse element, and zero or more sibling elements The form of leaf element declaration is: <!ELEMENT element_name (#PCDATA) Attribute Declarations: An attribute declaration must include the name of the element to which the attribute belongs, the attribute s name, and its type It may also include a default value The general form of an attribute declaration is as follows: <!ATTLIST element-name attribute-name attribute- type [default-value]> If more than one attribute is declared for a given element, the declarations can be combined, as follows: <!ATTLIST element_name attribute_name_1 attribute_type default_value_1 attribute_name_2 attribute_type default_value_2 attribute_name_n attribute_type default_value_n > Possible default values for attributes

3 Value Meaning 2. A value #FIXED value #REQUIRED #IMPLIED Entity Declarations: The quoted value, which is used if none is specified in an element The quoted value, which every element will have And which cannot be changed No default value is given; every instance of the element must specify a value No default value is given Entities can be defined so that they can be referenced anywhere in the content of an XML document, in which case they are called general entities The predefined entities are all general entities Entities can also be defined so that they can be referenced only in DTDs, in which case they are called parameter entities The form of an entity declaration is: <!ENTITY *%+ entity_name entity_value > When the optional % sign is present in an entity declaration, it specifies that the entity is a parameter entity rather than a general entity Ex. If a document has a large no of references to the full name of President Kennedy, an entity can be defined to represent his complete name as: <!ENTITY jfk John Fitzgerald Kennedy > AN XML document that uses a DTD that includes this declaration can specify the complete name with just the reference &jfk; When an entity is longer than a few words, such as the section of technical article, its text is defined outside the DTD. In such cases, the entity is called an external text entity The form of declaration of an external text entity is: <!ENTITY entity_name SYSTEM file_location > The keyword SYSTEM specifies that the definition of the entity is in a different file, which is specified as the string following SYSTEM 2. Explain the JavaScript screen output and keyboard input functions with examples. Standard output for JavaScript embedded in XHTML is the window displaying the page in which the JavaScript is embedded The Window object include two properties, document and window. document.write( The result is,result, </br> ); 10

4 The write method of the Document object write its parameters to the browser window The parameters to write can include any XHTML tags and contents. The window objects: The Window object is the JavaScript model for the browser window It includes 3 methods that create dialogue boxes for 3 specific kinds of user interactions. The alert method opens a dialog box with a message The output of the alert is not XHTML, so use new lines rather than <br/> alert("the sum is:" + sum + "\n"); The confirm methods displays a message provided as a parameter The confirm dialog has two buttons: OK and Cancel If the user presses OK, true is returned by the method If the user presses Cancel, false is returned var qstn =confirm("do you want to continue this download?"); The prompt method: This method displays its string argument in a dialog box The dialog box has an area for the user to enter text The method returns a String with the text entered by the user name = prompt("what is your name?", );

5 3. a Illustrate XSLT processing with the help of a diagram. XSLT is a functional-style programming language XSLT includes functions, parameters, names to which values can be bound, selection constructs, and conditional expressions for multiple selection The syntactic structure of XSLT is XML, so each statement is specified with an element XSLT processors take as input an XML doc and an XSLT doc The XSLT doc is the program to be executed; the XML doc is the input data to the program. Parts of the XML doc are selected, possibly modified, and merged with parts of the XSLT doc to form a new doc, which is sometimes called an XSL doc The XSL doc is also an XML doc, which could be again the input to an XSLT processor The output doc can be stored for future use, or it may be immediately displayed by an application, often by a browser Neither the XSLT doc nor the input XML doc is changed by the XSLT processor The transformation process by XSLT is shown below: 5 If a template matches an element, the element is not processed until the closing tag is found. When a template matches an element, the child elements of that element may or may not be processed

6 b The XSLT model of processing XML data is called the template-driven model, which works well when the data consists of multiple instances of highly regular data collections, as with files of records. XSLT can also deal with irregular and recursive data, using template fragments, in the datadriven model. A single XSLT style sheet can include the mechanisms for both the template-and data-driven models. An XSLT doc consists primarily of one or more templates which use XPath to describe element/attribute patterns in the input XML doc Each template has associated with it a section of XSLT code which is executed when a match to the template is found in the XML doc Each template describes a function which is executed whenever the XSLT processor finds a match to the template s pattern An XSLT processor sequentially examines the XML input doc, searching or parts that match one of the templates in the XSLT doc XML docs consist of nodes, where nodes are elements, attributes, comments, text and processing instructions. 3b. Declare an XML document containing data of 3 employees(emp_id, Emp_Desig, Emp_Age, Emp_phone, Emp_Address)and display this XML data using a CSS with the following styles: Emp_ID in font size -28pts and colour - Red Emp_Name and Emp_desig in font size -18pts and colour Blue Emp_Age,Emp_phone and Emp_Address in font size -15pts and colour Black Employee.xml <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/css" href="employee.css"?> <employee>program <emp-info>employee Information</emp-info> <emp1> <emp_id>001</emp_id> <emp_name>sam</emp_name> <emp_desig>programmer</emp_desig> <emp_age>23</emp_age> <emp_ph> </emp_ph> <emp_addr>mandya </emp_addr> </emp1> <emp2> <emp_id>002</emp_id> <emp_name>ram</emp_name> 5

7 <emp_desig>programmer</emp_desig> <emp_age>24</emp_age> <emp_ph> </emp_ph> <emp_addr>mandya </emp_addr> </emp2> <emp3> <emp_id>003</emp_id> <emp_name>tom</emp_name> <emp_desig>teamlead</emp_desig> <emp_age>25</emp_age> <emp_ph> </emp_ph> <emp_addr>bangalore </emp_addr> </emp3> </employee> Employee.css employee-info { display:block; color:blue; font-style:italic; font-size:200%;} employee { display : block; background-color:aqua;font-size:100%; } emp_id { font-size:28pts; colour: Red;} emp_name,emp_desig{font-size:18pts;colour: Blue} emp_age, emp_ph, emp_addr{font-size:15pts;colour: Black} Write an XHTML document containing a JavaScript function to compute the median of an array of numbers using the sort method, with at least two different data sets. 10 //Function median function median(list) { list.sort(function (a,b){return a - b;}); var list_len = list.length; // Use the modulus operator to determine whether the array's length is odd or even // Use Math.floor to truncate numbers // Use Math.round to round numbers if ((list_len % 2) == 1) return list[math.floor(list_len / 2)]; else return Math.round((list[list_len / 2-1] + list[list_len / 2]) / 2); } // end of function median var my_list_1=[8,3,9,1,4,7]; var my_list_2=[10,-2,0,5,3,1,7];

8 var med=median(my_list_1); document.write( Median of [, my_list_1, ] is:, med, <br /> Var med=median(my_list_2); document.write( Median of [, my_list_2, ] is:, med, <br /> Output Median of[8,3,9,1,4,7] is: 6 Median of[10,-2,0,5,3,1,7] is: 3 5 a With respect to XML schemas, explain complex type with examples. Definition of a complex type can specify several categories including element-only elements, which can have elements in their content but no text. All complex types can have attributes. Complex types are defined with the complextype tag. The elements that are the content of the element-only-element must be contained in an ordered group, an unordered group, a choice, or a named group. The sequence element is used to contain an ordered group of elements. <xsd:complextype name= sports_car > <xsd:sequence> <xsd:element name= make type= xsd:string /> <xsd:element name= model type= xsd:string /> <xsd:element name= year type= xsd:decimal /> </xsd:sequence> </xsd:complextype> A complex type whose elements are an unordered group is defined in an all element. Elements and all and sequence groups can include attributes to specify the numbers of occurrences These attributes are minoccurs and maxoccurs The possible values of minoccurs are the non-negative integers, including zero. The possible values of maxoccurs are the non-negative integers plus the value unbounded, which has the obvious meaning. Ex: <xsd:element name = "planes"> <xsd:complextype> <xsd:all> <xsd:element name = "make" type = "xsd:string" minoccurs = "1" maxoccurs = "unbounded" /> </xsd:all> </xsd:complextype>

9 </xsd:element> b Explain XML namespaces with syntax and examples. XML namespace is a collection of element and attribute names used in XML Documents The name of the name space is usually in the form of a Uniform Resource Identifier (URI) A namespace can be declared for an element and its descendants by <element_name xmlns[:prefix]=uri> The square brackets indicate that what is within them is optional. The prefix if included, is the name that must be attached to he names in the declared namespace A prefix is used for 2 reasons First, the URI is too long to be typed on every occurrence of every name from the namespace Second, a URI includes characters that are illegal in XML The element for which a namespace is declared is usually the root of a doc Ex: <html xmlns= > This declares the default namespace, from which names may appear without prefixes As an example of a prefixed namespace declaration, consider the following: <birds xmlns:bd= > Within the birds element, including all its children elements, the names from the namespace must be prefixed with bd as: <bd:lark> If an element has more than one namespace declaration, these are declared as follows: <birds xmlns:bd= xmlns:html= > In the above ex., the standard XHTML namespace is added to the birds element Also, note that in any namespace declaration one of the namespaces can be specified as the default by omitting the prefix The names from the default namespace can be used without a prefix Consider the following example in which 2 namespaces are declared. The first is declared to be the default namespace; the second defines the prefix, cap: <states> xmlns= xmlns:cap= <state> <name> South Dakota </name> <population> </population> <capital> <cap:name> Pierre </cap:name> <cap:population> </cap:population> </capital>

10 </state> <!-- More States --> </states> 6 a Write a note on XML processors. Purposes of XML Processors First, the processor must check the basic syntax of the document for well-formedness Second, the processor must replace all references to entities in an XML doc by their definitions Third, the DTDs and XML schemas can specify that certain values in an XML doc have default values, which must be copied into the XML doc during processing Fourth, when DTD or an XML schema is specified, and the processor includes a validating parser, the structure of the XML doc must be checked to ensure that its structure is legitimate One simple way to check the well-formedness of an XML doc is with a browser that has an XML parser Another way is to run an XML parser directly on the document Two different standards/models for processing SAX (Simple API for XML) approach DOM (Document Object Model) approach SAX Approach SAX was developed by XML DEV, an XML users group The SAX approach to processing is called Event processing The processor scans the document from beginning to end. Every time a syntactic structure of the doc is recognized, the processor signals an event to the application by calling an event handler for the particular structure that was found Syntactic structures include opening tags, attributes, text etc. DOM Approach The natural alternative to the SAX approach is to build a Hierarchical syntactic structure of the doc. Idea-Dynamic documents using java script In the case of XHTML, the browser parses the document and builds the DOM tree In the case of XML, the parser part of the XML processor builds the DOM tree The nodes of the tree are represented as objects that can be accessed and processed or modified by the application When parsing is complete, the complete DOM representation of the doc is in memory and can be accessed in a no of different ways, including tree traversals of various kinds as well as random accesses Advantages of DOM over SAX First, it has an obvious adv if any part of the document must be accessed more than once by the application Second, if the appln must perform any rearrangement of the doc, that can most easily be done if the whole doc is accessible at the same time.

11 Third, access to random parts of the document are possible. Finally, because the parser sees the whole doc, before any processing takes place, this approach avoids any processing of a document that is later found to be invalid(according to a DTD or XML schema) Disadvantages DOM needs large memory since the entire DOM structure is stored in memory Slower than SAX approach Requires syntactic analysis of XML document Most DOM parsers include a SAX parser as a front end b What is an XML schema? Explain defining a schema and a schema instance with an example. XML Schema is an alternative to DTD An XML schema is an XML doc, so it can be parsed with an XML parser A schema is similar to a class definition; an XML doc that conforms to the structure defined in the schema is similar to an object of the schema s class XML docs that conform to a specific schema are considered instances of that schema Schemas themselves are written using a collection of names, or a vocabulary, from a namespace that is, in effect, a schema of schemas The name of this namespace is Every schema has schema as its root element The schema element specifies the namespace for the schema of schemas from which the schema s elements and attributes will be drawn It also specifies a prefix that will be used for the names in the schema The namespace specification appear as: xmlns:xsd= This provides the prefix xsd for the names from the namespace for the schema of schemas A schema defines a namespace in the same sense as a DTD defines a tag set The name of the namespace defined by a schema must be specified with the targetnamespace attribute of the schema element Every top-level (not nested) element that appears in a schema places its name in the target name space The target namespace is specified by assigning a namespace to the target name space attribute as: targetnamespace= If we want the elements and attributes that are not defined directly in the schema element to be included in the target namespace, schema s elementformdefault must be set to qualified as: elementformdefault= qualified The default namespace, which is the source of the unprefixed names in the schema, is given with another xmlns specification.

12 Ex: xmlns= Altogether it looks like: <schema xmlns= targetnamespace= xmlns:plane= elementformdefault= qualified > An instance of a schema must include specifications of the namespace it uses These are given as attribute assignments in the tag for its root element First, an instance doc normally defines its default namespace to be the one defined in its schema The second attribute specification in the root element of an instance doc is for the schemalocation attribute This attribute is used to name the std namespace for instances, which is XMLSchema-instance. This namespace corresponds to the XMLSchema namespace used for schemas. The following attribute assignment specifies the XMLSchema-instance namespace and defines the prefix, xsi for it. xmlns:xsi = Third, the instance document must specify the filename of the schema where the default namespace is defined. This is done with the schemalocation attribute which takes 2 values: the namespace of the schema and the filename of the schema. xsi:schemalocation = http//cs.uccs.edu/planeschema planes.xsd Altogether, the opening root tag of an xml instance of the planes.xsd shema, where the root element name in the instanvce is palnes, could appear as: <planes xmlns= xmlns:xsi= xsi:schemalocation = http//cs.uccs.edu/planeschema planes.xsd > 7 Design an XML document to store information about a student in an engineering college affiliated to VTU. The information must include USN, Name, Name of the College, Branch, Year of Joining, and e- mail id. Make up sample data for 3 students. Create an XSLT style sheet for the student document and use it to display all the student records. <?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="4b.xsl"?> <student>program <title>program using XSLT stylesheet </title> <stud>

13 <usn>1pe14cs001</usn> <name>abhishek</name> <coll>pesit</coll> <branch>cse</branch> <yoj>2014</yoj> </stud> <stud> <usn>usn:1pe15is001</usn> <name>name:bcd</name> <noc>college:pesit</noc> <branch>branch:ise</branch> <yoj>yoj:2015</yoj> </stud> <stud> <usn>usn:1pe14cs001</usn> <name>name:def</name> <noc>college:pesit</noc> <branch>branch:cse</branch> <yoj>yoj:2014</yoj> </stud> </student> b.xsl <?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet version="1.0" xmlns:xsl=" xmlns=" <xsl:template match="student"> <xsl:for-each select= stud > <span style="font-size:20pt;color:blue"> ===> </span> <span><xsl:value-of select="title" /><br /></span> <span style="font-size:20pt;color:blue">usn:</span> <span><xsl:value-of select="usn" /><br /></span> <span style="font-size:20pt;color:blue">name:</span> <span><xsl:value-of select="name" /><br /></span> <span style="font-size:16pt;color:red">branch :</span> <span><xsl:value-of select="branch" /><br /></span> <span style="font-size:18pt;color:violet">college:</span> <span><xsl:value-of select="coll" /><br /></span>

14 <span style="font-size:18pt;color:yellow">yoj :</span> <span><xsl:value-of select="yoj" /><br /></span> </xsl:for-each> </xsl:template> </xsl:stylesheet> 8 Explain JavaScript arrays with creation and characteristics. Explain array methods with examples. JavaScript Arrays are lists of elements indexed by a numerical value Array index in JavaScript begin at 0 Array elements can be primitive values or references to other objects JavaScript Arrays have dynamic length Arrays object can be created in two distinct ways The usual way to create an array object is with the the new operator and a call to a constructor new Array with one parameter creates an empty array of the specified number of elements new Array with two or more parameters creates an array with the specified parameters as elements var my_list = new Array(100); var my_list = new Array(1, 2, three, four ); The second way to create an array object is with a Literal array value which is a list of values enclosed in brackets: var alist = *1, ii, gamma, 4 +; Elements of an array do not have to be of the same type Characteristics of an Array The length of an array is one more than the highest subscript to which a value has been assigned, plus 1 The length of an array is both read-and write- accessible through the length property The length of an array can be set to whatever you like by assigning the length property as follows: my_list.length=150; Assigning a value to the length property can lengthen, shorten, or not affect the array s length So an array can be made to grow either by adding new elements or by setting its length property to a larger value An array can be made to shrink by setting its length property to a smaller value Only assigned elements of an array actually occupy space The length property of an array is not necessarily the number of defined or even allocated elements Array objects have a collection of useful methods:

15 join reverse sort concat slice The join method converts all the elements of an array to strings and catenates them into a single string If no parameter is provided to join, the values in the new string are separated by commas If a string parameter is provided, it is used as the element separator: var names=new Array* Mary, Murray, Murphy, Max + var name_string=names.join( : ); The value of the name_string is now: Mary : Murray : Murphy : Max The reverse method reverses the order of elements of an Array object through which it is called The sort method coerces the elements of the array to strings, if they are not already strings, and sorts them alphabetically: names.sort(); The values of names is now: * Mary, Max, Murphy, Murray + The concat method catenates its actual parameters to the end of the Array object on which it s called For example, consider the following code: var names=new Array* Mary, Murray, Murphy, Max + var new_names=names.concat( Moo, Meow ); The new_names array now has length 6, with the elements of names, along with Moo and Meow as its fifth and sixth elements The slice method does for arrays what the substr method does for strings It returns the part of the Array object specified by its parameters, which are used as subscripts The returned array has the elements of the array object through which it is called from the 1st parameter upto, but not including the second parameter For example, var list=[2,4,6,8,10]; var list2=list.slice(1,3); The value of list is now[4,6] If slice is given just one parameter, the returned array has all the elements of the object, starting with the specified index: var list=* Bill, Will, Jill, Dill +; var list2=list.slice(2);

16 The value of list2 is [ Jill, Dill ] The push, pop, unshift and shift methods of Array allow the easy implementation of stacks and queues in arrays The pop and push methods remove and add an element to the high end of an array, respectively For example, consider the following: var list=* Bill, Will, Jill, Dill +; var list2=list.pop(); //list2 is Dill list.push( Dill ); //puts Dill back on list The shift and unshift methods remove and add an element to the beginning of an array, respectively * * * * * * *

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

7.1 Introduction. extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML 7.1 Introduction extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML Lax syntactical rules Many complex features that are rarely used HTML is a markup language,

More information

7.1 Introduction. 7.1 Introduction (continued) - Problem with using SGML: - SGML is a meta-markup language

7.1 Introduction. 7.1 Introduction (continued) - Problem with using SGML: - SGML is a meta-markup language 7.1 Introduction - SGML is a meta-markup language - Developed in the early 1980s; ISO std. In 1986 - HTML was developed using SGML in the early 1990s - specifically for Web documents - Two problems with

More information

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

Copyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 7 XML Chapter 7 XML 7.1 Introduction extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML Lax syntactical rules Many complex features that are rarely used HTML

More information

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 27-1

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 27-1 Slide 27-1 Chapter 27 XML: Extensible Markup Language Chapter Outline Introduction Structured, Semi structured, and Unstructured Data. XML Hierarchical (Tree) Data Model. XML Documents, DTD, and XML Schema.

More information

Overview. Introduction. Introduction XML XML. Lecture 16 Introduction to XML. Boriana Koleva Room: C54

Overview. Introduction. Introduction XML XML. Lecture 16 Introduction to XML. Boriana Koleva Room: C54 Overview Lecture 16 Introduction to XML Boriana Koleva Room: C54 Email: bnk@cs.nott.ac.uk Introduction The Syntax of XML XML Document Structure Document Type Definitions Introduction Introduction SGML

More information

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

CSI 3140 WWW Structures, Techniques and Standards. Representing Web Data: XML CSI 3140 WWW Structures, Techniques and Standards Representing Web Data: XML XML Example XML document: An XML document is one that follows certain syntax rules (most of which we followed for XHTML) Guy-Vincent

More information

XML. Objectives. Duration. Audience. Pre-Requisites

XML. Objectives. Duration. Audience. Pre-Requisites XML XML - extensible Markup Language is a family of standardized data formats. XML is used for data transmission and storage. Common applications of XML include business to business transactions, web services

More information

XML. COSC Dr. Ramon Lawrence. An attribute is a name-value pair declared inside an element. Comments. Page 3. COSC Dr.

XML. COSC Dr. Ramon Lawrence. An attribute is a name-value pair declared inside an element. Comments. Page 3. COSC Dr. COSC 304 Introduction to Database Systems XML Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca XML Extensible Markup Language (XML) is a markup language that allows for

More information

EMERGING TECHNOLOGIES. XML Documents and Schemas for XML documents

EMERGING TECHNOLOGIES. XML Documents and Schemas for XML documents EMERGING TECHNOLOGIES XML Documents and Schemas for XML documents Outline 1. Introduction 2. Structure of XML data 3. XML Document Schema 3.1. Document Type Definition (DTD) 3.2. XMLSchema 4. Data Model

More information

XML DTDs and Namespaces. CS174 Chris Pollett Oct 3, 2007.

XML DTDs and Namespaces. CS174 Chris Pollett Oct 3, 2007. XML DTDs and Namespaces CS174 Chris Pollett Oct 3, 2007. Outline Internal versus External DTDs Namespaces XML Schemas Internal versus External DTDs There are two ways to associate a DTD with an XML document:

More information

HTML vs. XML In the case of HTML, browsers have been taught how to ignore invalid HTML such as the <mymadeuptag> element and generally do their best

HTML vs. XML In the case of HTML, browsers have been taught how to ignore invalid HTML such as the <mymadeuptag> element and generally do their best 1 2 HTML vs. XML In the case of HTML, browsers have been taught how to ignore invalid HTML such as the element and generally do their best when dealing with badly placed HTML elements. The

More information

Fundamentals of Web Programming a

Fundamentals of Web Programming a Fundamentals of Web Programming a Introduction to XML Teodor Rus rus@cs.uiowa.edu The University of Iowa, Department of Computer Science a Copyright 2009 Teodor Rus. These slides have been developed by

More information

Structured documents

Structured documents Structured documents An overview of XML Structured documents Michael Houghton 15/11/2000 Unstructured documents Broadly speaking, text and multimedia document formats can be structured or unstructured.

More information

XML. XML Namespaces, XML Schema, XSLT

XML. XML Namespaces, XML Schema, XSLT XML XML Namespaces, XML Schema, XSLT Contents XML Namespaces... 2 Namespace Prefixes and Declaration... 3 Multiple Namespace Declarations... 4 Declaring Namespaces in the Root Element... 5 Default Namespaces...

More information

More XML Schemas, XSLT, Intro to PHP. CS174 Chris Pollett Oct 15, 2007.

More XML Schemas, XSLT, Intro to PHP. CS174 Chris Pollett Oct 15, 2007. More XML Schemas, XSLT, Intro to PHP CS174 Chris Pollett Oct 15, 2007. Outline XML Schemas XSLT PHP Overview of data types There are two categories of data types in XML Schemas: simple types -- which are

More information

COMP9321 Web Application Engineering

COMP9321 Web Application Engineering COMP9321 Web Application Engineering Semester 2, 2017 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid= 2465 1

More information

CSC Web Technologies, Spring Web Data Exchange Formats

CSC Web Technologies, Spring Web Data Exchange Formats CSC 342 - Web Technologies, Spring 2017 Web Data Exchange Formats Web Data Exchange Data exchange is the process of transforming structured data from one format to another to facilitate data sharing between

More information

Part 2: XML and Data Management Chapter 6: Overview of XML

Part 2: XML and Data Management Chapter 6: Overview of XML Part 2: XML and Data Management Chapter 6: Overview of XML Prof. Dr. Stefan Böttcher 6. Overview of the XML standards: XML, DTD, XML Schema 7. Navigation in XML documents: XML axes, DOM, SAX, XPath, Tree

More information

XML: Extensible Markup Language

XML: Extensible Markup Language XML: Extensible Markup Language CSC 375, Fall 2015 XML is a classic political compromise: it balances the needs of man and machine by being equally unreadable to both. Matthew Might Slides slightly modified

More information

Session [2] Information Modeling with XSD and DTD

Session [2] Information Modeling with XSD and DTD Session [2] Information Modeling with XSD and DTD September 12, 2000 Horst Rechner Q&A from Session [1] HTML without XML See Code HDBMS vs. RDBMS What does XDR mean? XML-Data Reduced Utilized in Biztalk

More information

CS6501 IP Unit IV Page 1

CS6501 IP Unit IV Page 1 CS6501 Internet Programming Unit IV Part - A 1. What is PHP? PHP - Hypertext Preprocessor -one of the most popular server-side scripting languages for creating dynamic Web pages. - an open-source technology

More information

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

Delivery Options: Attend face-to-face in the classroom or remote-live attendance. XML Programming Duration: 5 Days Price: $2795 *California residents and government employees call for pricing. Discounts: We offer multiple discount options. Click here for more info. Delivery Options:

More information

Chapter 13 XML: Extensible Markup Language

Chapter 13 XML: Extensible Markup Language Chapter 13 XML: Extensible Markup Language - Internet applications provide Web interfaces to databases (data sources) - Three-tier architecture Client V Application Programs Webserver V Database Server

More information

XML. Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior

XML. Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior XML Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior XML INTRODUCTION 2 THE XML LANGUAGE XML: Extensible Markup Language Standard for the presentation and transmission of information.

More information

XML Extensible Markup Language

XML Extensible Markup Language XML Extensible Markup Language Generic format for structured representation of data. DD1335 (Lecture 9) Basic Internet Programming Spring 2010 1 / 34 XML Extensible Markup Language Generic format for structured

More information

The concept of DTD. DTD(Document Type Definition) Why we need DTD

The concept of DTD. DTD(Document Type Definition) Why we need DTD Contents Topics The concept of DTD Why we need DTD The basic grammar of DTD The practice which apply DTD in XML document How to write DTD for valid XML document The concept of DTD DTD(Document Type Definition)

More information

COMP9321 Web Application Engineering. Extensible Markup Language (XML)

COMP9321 Web Application Engineering. Extensible Markup Language (XML) COMP9321 Web Application Engineering Extensible Markup Language (XML) Dr. Basem Suleiman Service Oriented Computing Group, CSE, UNSW Australia Semester 1, 2016, Week 4 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2442

More information

CountryData Technologies for Data Exchange. Introduction to XML

CountryData Technologies for Data Exchange. Introduction to XML CountryData Technologies for Data Exchange Introduction to XML What is XML? EXtensible Markup Language Format is similar to HTML, but XML deals with data structures, while HTML is about presentation Open

More information

JavaScript CS 4640 Programming Languages for Web Applications

JavaScript CS 4640 Programming Languages for Web Applications JavaScript CS 4640 Programming Languages for Web Applications 1 How HTML, CSS, and JS Fit Together {css} javascript() Content layer The HTML gives the page structure and adds semantics Presentation

More information

XML, XPath, and XSLT. Jim Fawcett Software Modeling Copyright

XML, XPath, and XSLT. Jim Fawcett Software Modeling Copyright XML, XPath, and XSLT Jim Fawcett Software Modeling Copyright 1999-2017 Topics XML is an acronym for extensible Markup Language. Its purpose is to describe structured data. XPath is a language for navigating

More information

Fundamentals of Web Programming a

Fundamentals of Web Programming a Fundamentals of Web Programming a Introduction to XML Teodor Rus rus@cs.uiowa.edu The University of Iowa, Department of Computer Science a Copyright 2009 Teodor Rus. These slides have been developed by

More information

Intro to XML. Borrowed, with author s permission, from:

Intro to XML. Borrowed, with author s permission, from: Intro to XML Borrowed, with author s permission, from: http://business.unr.edu/faculty/ekedahl/is389/topic3a ndroidintroduction/is389androidbasics.aspx Part 1: XML Basics Why XML Here? You need to understand

More information

~ Ian Hunneybell: DIA Revision Notes ~

~ Ian Hunneybell: DIA Revision Notes ~ XML is based on open standards, and is text-based, thereby making it accessible to all. It is extensible, thus allowing anyone to customise it for their own needs, to publish for others to use, and to

More information

Introduction. " Documents have tags giving extra information about sections of the document

Introduction.  Documents have tags giving extra information about sections of the document Chapter 10: XML Introduction! XML: Extensible Markup Language! Defined by the WWW Consortium (W3C)! Originally intended as a document markup language not a database language " Documents have tags giving

More information

IBM. XML and Related Technologies Dumps Braindumps Real Questions Practice Test dumps free

IBM. XML and Related Technologies Dumps Braindumps Real Questions Practice Test dumps free 000-141 Dumps 000-141 Braindumps 000-141 Real Questions 000-141 Practice Test 000-141 dumps free IBM 000-141 XML and Related Technologies http://killexams.com/pass4sure/exam-detail/000-141 collections

More information

Information Systems. DTD and XML Schema. Nikolaj Popov

Information Systems. DTD and XML Schema. Nikolaj Popov Information Systems DTD and XML Schema Nikolaj Popov Research Institute for Symbolic Computation Johannes Kepler University of Linz, Austria popov@risc.uni-linz.ac.at Outline DTDs Document Type Declarations

More information

XML 2 APPLICATION. Chapter SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC.

XML 2 APPLICATION. Chapter SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC. XML 2 APPLIATION hapter SYS-ED/ OMPUTER EDUATION TEHNIQUES, IN. Objectives You will learn: How to create an XML document. The role of the document map, prolog, and XML declarations. Standalone declarations.

More information

Introduction to XML. Chapter 133

Introduction to XML. Chapter 133 Chapter 133 Introduction to XML A. Multiple choice questions: 1. Attributes in XML should be enclosed within. a. single quotes b. double quotes c. both a and b d. none of these c. both a and b 2. Which

More information

XPath Expression Syntax

XPath Expression Syntax XPath Expression Syntax SAXON home page Contents Introduction Constants Variable References Parentheses and operator precedence String Expressions Boolean Expressions Numeric Expressions NodeSet expressions

More information

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name EXAM IN SEMI-STRUCTURED DATA 184.705 10. 01. 2017 Study Code Student Id Family Name First Name Working time: 100 minutes. Exercises have to be solved on this exam sheet; Additional slips of paper will

More information

Introduction. " Documents have tags giving extra information about sections of the document

Introduction.  Documents have tags giving extra information about sections of the document Chapter 10: XML Introduction! XML: Extensible Markup Language! Defined by the WWW Consortium (W3C)! Originally intended as a document markup language not a database language " Documents have tags giving

More information

SDPL : XML Basics 2. SDPL : XML Basics 1. SDPL : XML Basics 4. SDPL : XML Basics 3. SDPL : XML Basics 5

SDPL : XML Basics 2. SDPL : XML Basics 1. SDPL : XML Basics 4. SDPL : XML Basics 3. SDPL : XML Basics 5 2 Basics of XML and XML documents 2.1 XML and XML documents Survivor's Guide to XML, or XML for Computer Scientists / Dummies 2.1 XML and XML documents 2.2 Basics of XML DTDs 2.3 XML Namespaces XML 1.0

More information

Introduction to XML. XML: basic elements

Introduction to XML. XML: basic elements Introduction to XML XML: basic elements XML Trying to wrap your brain around XML is sort of like trying to put an octopus in a bottle. Every time you think you have it under control, a new tentacle shows

More information

- XML. - DTDs - XML Schema - XSLT. Web Services. - Well-formedness is a REQUIRED check on XML documents

- XML. - DTDs - XML Schema - XSLT. Web Services. - Well-formedness is a REQUIRED check on XML documents Purpose of this day Introduction to XML for parliamentary documents (and all other kinds of documents, actually) Prof. Fabio Vitali University of Bologna Introduce the principal aspects of electronic management

More information

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name

EXAM IN SEMI-STRUCTURED DATA Study Code Student Id Family Name First Name EXAM IN SEMI-STRUCTURED DATA 184.705 28. 10. 2016 Study Code Student Id Family Name First Name Working time: 100 minutes. Exercises have to be solved on this exam sheet; Additional slips of paper will

More information

UNIT 3 XML DATABASES

UNIT 3 XML DATABASES UNIT 3 XML DATABASES XML Databases: XML Data Model DTD - XML Schema - XML Querying Web Databases JDBC Information Retrieval Data Warehousing Data Mining. 3.1. XML Databases: XML Data Model The common method

More information

DTD MIGRATION TO W3C SCHEMA

DTD MIGRATION TO W3C SCHEMA Chapter 1 Schema Introduction The XML technical specification identified a standard for writing a schema (i.e., an information model) for XML called a document type definition (DTD). 1 DTDs were a carryover

More information

Question Bank XML (Solved/Unsolved) Q.1 Fill in the Blanks: (1 Mark each)

Question Bank XML (Solved/Unsolved) Q.1 Fill in the Blanks: (1 Mark each) Q.1 Fill in the Blanks: (1 Mark each) 1. With XML, you can create your own elements, also called tags. 2. The beginning or first element in XML is called the root (document) element. 3. Jon Bosak is known

More information

XML Applications. Prof. Andrea Omicini DEIS, Ingegneria Due Alma Mater Studiorum, Università di Bologna a Cesena

XML Applications. Prof. Andrea Omicini DEIS, Ingegneria Due Alma Mater Studiorum, Università di Bologna a Cesena XML Applications Prof. Andrea Omicini DEIS, Ingegneria Due Alma Mater Studiorum, Università di Bologna a Cesena Outline XHTML XML Schema XSL & XSLT Other XML Applications 2 XHTML HTML vs. XML HTML Presentation

More information

JavaScript CS 4640 Programming Languages for Web Applications

JavaScript CS 4640 Programming Languages for Web Applications JavaScript CS 4640 Programming Languages for Web Applications 1 How HTML, CSS, and JS Fit Together {css} javascript() Content layer The HTML gives the page structure and adds semantics Presentation

More information

Week 2: Lecture Notes. DTDs and XML Schemas

Week 2: Lecture Notes. DTDs and XML Schemas Week 2: Lecture Notes DTDs and XML Schemas In Week 1, we looked at the structure of an XML document and how to write XML. I trust you have all decided on the editor you prefer. If not, I continue to recommend

More information

Birkbeck (University of London)

Birkbeck (University of London) Birkbeck (University of London) MSc Examination Department of Computer Science and Information Systems Internet and Web Technologies (COIY063H7) 15 Credits Date of Examination: 13 June 2017 Duration of

More information

Exam : Title : XML 1.1 and Related Technologies. Version : DEMO

Exam : Title : XML 1.1 and Related Technologies. Version : DEMO Exam : 000-142 Title : XML 1.1 and Related Technologies Version : DEMO 1. XML data is stored and retrieved within a relational database for a data-centric application by means of mapping XML schema elements

More information

COMP9321 Web Application Engineering

COMP9321 Web Application Engineering COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2411 1 Extensible

More information

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

XML. Presented by : Guerreiro João Thanh Truong Cong XML Presented by : Guerreiro João Thanh Truong Cong XML : Definitions XML = Extensible Markup Language. Other Markup Language : HTML. XML HTML XML describes a Markup Language. XML is a Meta-Language. Users

More information

Outline. XML vs. HTML and Well Formed vs. Valid. XML Overview. CSC309 Tutorial --XML 4. Edward Xia

Outline. XML vs. HTML and Well Formed vs. Valid. XML Overview. CSC309 Tutorial --XML 4. Edward Xia CSC309 Tutorial XML Edward Xia November 7, 2003 Outline XML Overview XML DOCTYPE Element Declarations Attribute List Declarations Entity Declarations CDATA Stylesheet PI XML Namespaces A Complete Example

More information

DOM Interface subset 1/ 2

DOM Interface subset 1/ 2 DOM Interface subset 1/ 2 Document attributes documentelement methods createelement, createtextnode, Node attributes nodename, nodevalue, nodetype, parentnode, childnodes, firstchild, lastchild, previoussibling,

More information

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

XML: Introduction. !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... Directive... 9:11 !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... 7:4 @import Directive... 9:11 A Absolute Units of Length... 9:14 Addressing the First Line... 9:6 Assigning Meaning to XML Tags...

More information

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

Delivery Options: Attend face-to-face in the classroom or via remote-live attendance. XML Programming Duration: 5 Days US Price: $2795 UK Price: 1,995 *Prices are subject to VAT CA Price: CDN$3,275 *Prices are subject to GST/HST Delivery Options: Attend face-to-face in the classroom or

More information

M359 Block5 - Lecture12 Eng/ Waleed Omar

M359 Block5 - Lecture12 Eng/ Waleed Omar Documents and markup languages The term XML stands for extensible Markup Language. Used to label the different parts of documents. Labeling helps in: Displaying the documents in a formatted way Querying

More information

Web Programming Paper Solution (Chapter wise)

Web Programming Paper Solution (Chapter wise) What is valid XML document? Design an XML document for address book If in XML document All tags are properly closed All tags are properly nested They have a single root element XML document forms XML tree

More information

XML. Jonathan Geisler. April 18, 2008

XML. Jonathan Geisler. April 18, 2008 April 18, 2008 What is? IS... What is? IS... Text (portable) What is? IS... Text (portable) Markup (human readable) What is? IS... Text (portable) Markup (human readable) Extensible (valuable for future)

More information

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

CSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0 CSI 3140 WWW Structures, Techniques and Standards Markup Languages: XHTML 1.0 HTML Hello World! Document Type Declaration Document Instance Guy-Vincent Jourdan :: CSI 3140 :: based on Jeffrey C. Jackson

More information

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

Java EE 7: Back-end Server Application Development 4-2 Java EE 7: Back-end Server Application Development 4-2 XML describes data objects called XML documents that: Are composed of markup language for structuring the document data Support custom tags for data

More information

XML - Schema. Mario Arrigoni Neri

XML - Schema. Mario Arrigoni Neri XML - Schema Mario Arrigoni Neri 1 Well formed XML and valid XML Well formation is a purely syntactic property Proper tag nesting, unique root, etc.. Validation is more semantic, because it must take into

More information

Presentation. Separating Content and Presentation Cascading Style Sheets (CSS) XML and XSLT

Presentation. Separating Content and Presentation Cascading Style Sheets (CSS) XML and XSLT Presentation Separating Content and Presentation Cascading Style Sheets (CSS) XML and XSLT WordPress Projects Theme Generators WYSIWYG editor Look at tools to support generation of themes Design a new

More information

XML Introduction 1. XML Stands for EXtensible Mark-up Language (XML). 2. SGML Electronic Publishing challenges -1986 3. HTML Web Presentation challenges -1991 4. XML Data Representation challenges -1996

More information

Chapter 1: Getting Started. You will learn:

Chapter 1: Getting Started. You will learn: Chapter 1: Getting Started SGML and SGML document components. What XML is. XML as compared to SGML and HTML. XML format. XML specifications. XML architecture. Data structure namespaces. Data delivery,

More information

Alpha College of Engineering and Technology. Question Bank

Alpha College of Engineering and Technology. Question Bank Alpha College of Engineering and Technology Department of Information Technology and Computer Engineering Chapter 1 WEB Technology (2160708) Question Bank 1. Give the full name of the following acronyms.

More information

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

Extensible Markup Language (XML) Hamid Zarrabi-Zadeh Web Programming Fall 2013 Extensible Markup Language (XML) Hamid Zarrabi-Zadeh Web Programming Fall 2013 2 Outline Introduction XML Structure Document Type Definition (DTD) XHMTL Formatting XML CSS Formatting XSLT Transformations

More information

AIM. 10 September

AIM. 10 September AIM These two courses are aimed at introducing you to the World of Web Programming. These courses does NOT make you Master all the skills of a Web Programmer. You must learn and work MORE in this area

More information

CSS, Cascading Style Sheets

CSS, Cascading Style Sheets CSS, Cascading Style Sheets HTML was intended to define the content of a document This is a heading This is a paragraph This is a table element Not how they look (aka style)

More information

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

PASS4TEST. IT Certification Guaranteed, The Easy Way!   We offer free update service for one year PASS4TEST IT Certification Guaranteed, The Easy Way! \ http://www.pass4test.com We offer free update service for one year Exam : 000-141 Title : XML and related technologies Vendors : IBM Version : DEMO

More information

HTML and XML. XML stands for extensible Markup Language

HTML and XML. XML stands for extensible Markup Language HTML and XML XML stands for extensible Markup Language HTML is used to mark up text so it can be displayed to users HTML describes both structure (e.g. , , ) and appearance (e.g. , ,

More information

XML SCHEMA INFERENCE WITH XSLT

XML SCHEMA INFERENCE WITH XSLT XML SCHEMA INFERENCE WITH XSLT By SCOTT MCCOLLUM BUNTIN A THESIS PRESENTED TO THE GRADUATE SCHOOL OF THE UNIVERSITY OF FLORIDA IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF MASTER OF SCIENCE

More information

COPYRIGHTED MATERIAL. Introduction to XML

COPYRIGHTED MATERIAL. Introduction to XML Introduction to XML Extensible Markup Language (XML) is a language defined by the World Wide Web Consortium (W3C, http://www.w3c.org), the body that sets the standards for the Web. You can use XML to create

More information

Data Presentation and Markup Languages

Data Presentation and Markup Languages Data Presentation and Markup Languages MIE456 Tutorial Acknowledgements Some contents of this presentation are borrowed from a tutorial given at VLDB 2000, Cairo, Agypte (www.vldb.org) by D. Florescu &.

More information

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0

CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0 WEB TECHNOLOGIES A COMPUTER SCIENCE PERSPECTIVE CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0 Modified by Ahmed Sallam Based on original slides by Jeffrey C. Jackson reserved. 0-13-185603-0 HTML HELLO WORLD! Document

More information

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

What is XML? XML is designed to transport and store data. What is XML? XML stands for extensible Markup Language. XML is designed to transport and store data. HTML was designed to display data. XML is a markup language much like HTML XML was designed to carry

More information

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

Govt. of Karnataka, Department of Technical Education Diploma in Computer Science & Engineering. Fifth Semester. Subject: Web Programming Govt. of Karnataka, Department of Technical Education Diploma in Computer Science & Engineering Fifth Semester Subject: Web Programming Contact Hrs / week: 4 Total hrs: 64 Table of Contents SN Content

More information

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

Introduction Syntax and Usage XML Databases Java Tutorial XML. November 5, 2008 XML Introduction Syntax and Usage Databases Java Tutorial November 5, 2008 Introduction Syntax and Usage Databases Java Tutorial Outline 1 Introduction 2 Syntax and Usage Syntax Well Formed and Valid Displaying

More information

XML databases. Jan Chomicki. University at Buffalo. Jan Chomicki (University at Buffalo) XML databases 1 / 9

XML databases. Jan Chomicki. University at Buffalo. Jan Chomicki (University at Buffalo) XML databases 1 / 9 XML databases Jan Chomicki University at Buffalo Jan Chomicki (University at Buffalo) XML databases 1 / 9 Outline 1 XML data model 2 XPath 3 XQuery Jan Chomicki (University at Buffalo) XML databases 2

More information

VTU Question Bank. UNIT 1 Introduction to WWW, XHTML

VTU Question Bank. UNIT 1 Introduction to WWW, XHTML VTU Question Bank UNIT 1 Introduction to WWW, XHTML 1. Explain HTTP. (05 Marks) (Jan-2014, Dec-2012, Jun/July -2011, June-2012) 2. Explain Web servers operation and general server characteristics. (05

More information

XML: some structural principles

XML: some structural principles XML: some structural principles Hayo Thielecke University of Birmingham www.cs.bham.ac.uk/~hxt October 18, 2011 1 / 25 XML in SSC1 versus First year info+web Information and the Web is optional in Year

More information

Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. M.Sc. in Advanced Computer Science. Date: Tuesday 20 th May 2008.

Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE. M.Sc. in Advanced Computer Science. Date: Tuesday 20 th May 2008. COMP60370 Two hours UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE M.Sc. in Advanced Computer Science Semi-Structured Data and the Web Date: Tuesday 20 th May 2008 Time: 09:45 11:45 Please answer

More information

The XML Metalanguage

The XML Metalanguage The XML Metalanguage Mika Raento mika.raento@cs.helsinki.fi University of Helsinki Department of Computer Science Mika Raento The XML Metalanguage p.1/442 2003-09-15 Preliminaries Mika Raento The XML Metalanguage

More information

Introduction to XSLT. Version 1.0 July nikos dimitrakas

Introduction to XSLT. Version 1.0 July nikos dimitrakas Introduction to XSLT Version 1.0 July 2011 nikos dimitrakas Table of contents 1 INTRODUCTION... 3 1.1 XSLT... 3 1.2 PREREQUISITES... 3 1.3 STRUCTURE... 3 2 SAMPLE DATA... 4 3 XSLT... 6 4 EXAMPLES... 7

More information

Web Programming. Meta-markup Languages

Web Programming. Meta-markup Languages Web Programming Lecture 6 Introduction to XML Meta-markup Languages A markup language allows the user to identify individual elements of a document, e.g., what is a paragraph, a heading, or an unordered

More information

XML 2 APPLICATION. Chapter SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC.

XML 2 APPLICATION. Chapter SYS-ED/ COMPUTER EDUCATION TECHNIQUES, INC. XML 2 APPLIATION hapter SYS-ED/ OMPUTER EDUATION TEHNIQUES, IN. Objectives You will learn: How to create an XML document. The role of the document map, prolog, and XML declarations. Standalone declarations.

More information

Dynamic Indexing with XSL

Dynamic Indexing with XSL In content is generally displayed in a static format. This means that the content entered never changes unless it is updated manually. When a page is transformed, the data entered on the page is visible.

More information

Shankersinh Vaghela Bapu Institue of Technology

Shankersinh Vaghela Bapu Institue of Technology Branch: - 6th Sem IT Year/Sem : - 3rd /2014 Subject & Subject Code : Faculty Name : - Nitin Padariya Pre Upload Date: 31/12/2013 Submission Date: 9/1/2014 [1] Explain the need of web server and web browser

More information

Birkbeck (University of London)

Birkbeck (University of London) Birkbeck (University of London) MSc Examination Department of Computer Science and Information Systems Internet and Web Technologies (COIY063H7) 15 Credits Date of Examination: 3 June 2016 Duration of

More information

StreamServe Persuasion SP5 XMLIN

StreamServe Persuasion SP5 XMLIN StreamServe Persuasion SP5 XMLIN User Guide Rev A StreamServe Persuasion SP5 XMLIN User Guide Rev A 2001-2010 STREAMSERVE, INC. ALL RIGHTS RESERVED United States patent #7,127,520 No part of this document

More information

XML Overview, part 1

XML Overview, part 1 XML Overview, part 1 Norman Gray Revision 1.4, 2002/10/30 XML Overview, part 1 p.1/28 Contents The who, what and why XML Syntax Programming with XML Other topics The future http://www.astro.gla.ac.uk/users/norman/docs/

More information

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI

DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI DHANALAKSHMI COLLEGE OF ENGINEERING, CHENNAI Department of Information Technology IT6801 SERVICE ORIENTED ARCHITECTURE Anna University 2 & 16 Mark Questions & Answers Year / Semester: IV / VII Regulation:

More information

XML Motivations. Semi-structured data. Principles of Information and Database Management 198:336 Week 8 Mar 28 Matthew Stone.

XML Motivations. Semi-structured data. Principles of Information and Database Management 198:336 Week 8 Mar 28 Matthew Stone. XML Motivations Principles of Information and Database Management 198:336 Week 8 Mar 28 Matthew Stone Semi-structured data Relaxing traditional schema Storing more complex objects Standardized data Using

More information

XSLT: How Do We Use It?

XSLT: How Do We Use It? XSLT: How Do We Use It? Nancy Hallberg Nikki Massaro Kauffman 1 XSLT: Agenda Introduction & Terminology XSLT Walkthrough Client-Side XSLT/XHTML Server-Side XSLT/XHTML More Creative Server-Side XSLT 2 XSLT:

More information

6/3/2016 8:44 PM 1 of 35

6/3/2016 8:44 PM 1 of 35 6/3/2016 8:44 PM 1 of 35 6/3/2016 8:44 PM 2 of 35 2) Background Well-formed XML HTML XSLT Processing Model 6/3/2016 8:44 PM 3 of 35 3) XPath XPath locates items within an XML file It relies on the XML

More information

Grid Computing. What is XML. Tags, elements, and attributes. Valid and well formed XML. Grid Computing Fall 2006 Paul A.

Grid Computing. What is XML. Tags, elements, and attributes. Valid and well formed XML. Grid Computing Fall 2006 Paul A. Grid Computing XML Fall 2006 Including material from Amy Apon, James McCartney, Arkansas U. What is XML XML stands for extensible markup language It is a hierarchical data description language It is a

More information

Overview. Structured Data. The Structure of Data. Semi-Structured Data Introduction to XML Querying XML Documents. CMPUT 391: XML and Querying XML

Overview. Structured Data. The Structure of Data. Semi-Structured Data Introduction to XML Querying XML Documents. CMPUT 391: XML and Querying XML Database Management Systems Winter 2004 CMPUT 391: XML and Querying XML Lecture 12 Overview Semi-Structured Data Introduction to XML Querying XML Documents Dr. Osmar R. Zaïane University of Alberta Chapter

More information