The One-to-many Relationship A relationship in which one object can reference several instances of another.

Slides:



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

XML III. Learning Objectives Formatting XML Documents: Overview Using Cascading Style Sheets to format XML documents Using XSL to format XML documents.
XML Schema Heewon Lee. Contents 1. Introduction 2. Concepts 3. Example 4. Conclusion.
CG0119 Web Database Systems Parsing XML: using SimpleXML & XSLT.
XML and Enterprise Computing. What is XML? Stands for “Extensible Markup Language” –similar to SGML and HTML –document “tags” are used to define content.
Technology Reviews :XSL Park, Ho-gun. What is XSL Extensible Style sheet LanguageExtensible Style sheet Language An XML-based language used to.
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
An Introduction to XML Based on the W3C XML Recommendations.
XML: Managing Data Exchange Stylesheets. Lesson Contents CSS The basic XSL file XSL transforms Templates Sort Numbering Parameters and Variables Datatypes.
1 XML DTD & XML Schema Monica Farrow G30
ICS-FORTH 1 May 22, 2001 Christos Georgis The extensible markup language: An introduction to XML What is a XML document ? How do we check its validity.
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.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
Introduction to XML ISYS 573. HTML vs XML HTML is a language specifically designed for displaying information in browser. It doesn’t carry information.
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
17 Apr 2002 XML Stylesheets Andy Clark. What Is It? Extensible Stylesheet Language (XSL) Language for document transformation – Transformation (XSLT)
Manohar – Why XML is Required Problem: We want to save the data and retrieve it further or to transfer over the network. This.
Introduction to XML: Part I By Sandeep Jangity CS 157B, Section 2 Dr. Lee.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
XP New Perspectives on XML Tutorial 4 1 XML Schema Tutorial – Carey ISBN Working with Namespaces and Schemas.
E X TENSIBLE M ARKUP L ANGUAGE (XML). What is XML?  XML stands for EXtensible Markup Language  XML is mainly designed to carry (or transmit) data, not.
1 Enterprise IT [Πληροφοριακές Τεχνολογίες της Επιχείρησης] Lecture 6-9: XSD Overview Univ. of the Aegean Financial and Management Engineering Dpt Petros.
1 XML Schemas. 2 Useful Links Schema tutorial links:
CSE4500 Information Retrieval Systems XML Schema – Part 1.
Introduction to XML Eugenia Fernandez IUPUI. What is XML? From the World Wide Web Consortium (W3C) The Extensible Markup Language (XML) is the universal.
An Introduction to XML Presented by Scott Nemec at the UniForum Chicago meeting on 7/25/2006.
1 CIS336 Website design, implementation and management (also Semester 2 of CIS219, CIS221 and IT226) Lecture 6 XSLT (Based on Møller and Schwartzbach,
These Questions are copied from
 XML is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
Session IV Chapter 9 – XML Schemas
XML About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
JSTL, XML and XSLT An introduction to JSP Standard Tag Library and XML/XSLT transformation for Web layout.
XML and Web Services CS409 Application Services Even Semester 2007.
IST 221 Internet Concepts and Applications Introduction to XML II CSS and XSLT Style Sheets.
Of 33 lecture 3: xml and xml schema. of 33 XML, RDF, RDF Schema overview XML – simple introduction and XML Schema RDF – basics, language RDF Schema –
CIS 451: XML DTDs Dr. Ralph D. Westfall February, 2009.
XML Validation I DTDs Robin Burke ECT 360 Winter 2004.
1 Introduction  Extensible Markup Language (XML) –Uses tags to describe the structure of a document –Simplifies the process of sharing information –Extensible.
CS 1308 Computer Literacy and the Internet
Lecture 16 Introduction to XML Boriana Koleva Room: C54
Accessing Data Using XML CHAPTER NINE Matakuliah: T0063 – Pemrograman Visual Tahun: 2009.
XML – Part III. The Element … This type of element either has the element content or the mixed content (child element and data) The attributes of the.
1 Credits Prepared by: Rajendra P. Srivastava Ernst & Young Professor University of Kansas Sponsored by: Ernst & Young, LLP (August 2005) XBRL Module Part.
An Introduction to XML Sandeep Bhattaram
Sheet 1XML Technology in E-Commerce 2001Lecture 2 XML Technology in E-Commerce Lecture 2 Logical and Physical Structure, Validity, DTD, XML Schema.
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
XML 2nd EDITION Tutorial 4 Working With Schemas. XP Schemas A schema is an XML document that defines the content and structure of one or more XML documents.
1 Tutorial 14 Validating Documents with Schemas Exploring the XML Schema Vocabulary.
Tutorial 13 Validating Documents with Schemas
XML Many-to-Many Relationship January 30, Learning Objectives ● Create a schema for a data model containing a many:many relationship ● Understand.
Jennifer Widom XML Data Introduction, Well-formed XML.
Web Development 101 Presented by John Valance
Introduction to XML Schema John Arnett, MSc Standards Modeller Information and Statistics Division NHSScotland Tel: (x2073)
Well Formed XML The basics. A Simple XML Document Smith Alice.
Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
XML Schema – Simple Type Web site:
XML Schema – XSLT Week 8 Web site:
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.
XML 1.Introduction to XML 2.Document Type Definition (DTD) 3.XML Parser 4.Example: CGI Gateway to XML Middleware.
1 XML and XML in DLESE Katy Ginger November 2003.
Extensible Markup Language (XML) Pat Morin COMP 2405.
Chapter 12 Information Systems.
Cascading Style Sheets - Building a stylesheet
XML Data Introduction, Well-formed XML.
Cascading Style Sheets - Building a stylesheet
Unit 6 - XML Transformations
Presentation transcript:

The One-to-many Relationship A relationship in which one object can reference several instances of another.

Learning Objectives Learn different techniques of implementing one- to-many relationships in XML Create custom data types in an XML schema Create empty elements with attributes in an XML document Build XML stylesheets using HTML style tags

Implementing a One-to-Many Relationship Containment relationships Example: Bulldogs Mike Vick

Implementing a One-to-Many Relationship Intra-document relationships Example: Bulldogs Yellow Jackets Mike Vick

Implementing a One-to-Many Relationship Inter-document relationships Different tables may be located in different documents or files Example: Bulldogs Yellow Jackets Mike Vick

XML Schema Data Types Basic data types i.e. integer, boolean, string, decimal Additional types i.e. year, month, time, date, anyURI Custom data types Created by the user to define specific fields/values Custom Data Type Example

Regular Expression & Element Types Perl’s regular expression language can be used to construct a pattern in defining an XML schemaregular expression Element Types Element content Root element; consists of elements only between tags Mixed content element Consists of text as well as other elements between tags Single content element Consists of only text between tags Empty content element Contains nothing between its opening and closing tags

Attributes Same naming structure as elements In single element, attributes’ names must be unique May not contain the “<“ symbol and the character string “&lt” can be used to represent it Each attribute must have a name and a value If quotes are used to enclose to enclose the string, they must differ from the quotes used to enclose the value. John Smith

XSL: Stylesheets Using tables for layout Also set background color, font-size, font-weight, and alignment using the style tag in HTML Stylesheet

Summary Ways to implement a one-to-many relationship Containment Intra-document Inter-document Custom data types Use built-in data types and apply restrictions, facets, or specific patterns Empty element Contains no text but may contain attributes for better element definition Presentation layout with stylesheets HTML style tags and table layout

Exercise: Movie Database Create an XML schema to depict a relationship between movie genres, movies, and actors/actresses Choose two genres (drama, horror, action, etc.), two movies in each, and several actors/actresses from each. Using the schema, create a document and populate it with the chosen information as well as additional actor/actress data including social security number in regex. Create an XML stylesheet to present the data in table form for easier readability