EMERGING TECHNOLOGIES. XML Documents and Schemas for XML documents
|
|
- Calvin Lane
- 5 years ago
- Views:
Transcription
1 EMERGING TECHNOLOGIES XML Documents and Schemas for XML documents
2 Outline 1. Introduction 2. Structure of XML data 3. XML Document Schema 3.1. Document Type Definition (DTD) 3.2. XMLSchema 4. Data Model for XML documents. 5. XML Query Languages 5.1. XPath 5.2. XQuery
3 1. Introduction (1) 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 extra information about sections of the document. E.g. <title> XML </title> <slide> Introduction </slide> Derived from SGML (Standard Generalized Markup Language), but simpler to use than SGML.
4 1. Introduction (2) Unlike SGML and HTML, XML can represent database data and other kinds of data used in database applications. Unlike HTML, XML is extensible: Users can add new tags, and separately specify how the tag should be handled for display. The ability to specify new tags, and to create nested tag structures made XML a great way to exchange data, not just documents.
5 1. Introduction (3): From HTML to XML For the family of markup languages that include HTML, SGML, and XML the markup takes the form of tags enclosed into angle brackets, <>. Tags are used in pairs of the form <tag>, </tag>. e.g. <title> Databases </tile> With HTML, various pieces of text in a document are marked with tags that affect the rendering of that text by a web browser. e.g. Text between <table> and </table> will be rendered by the browser as a table. The tag <p> is supposed to tell the browser to start a new paragraph. The number of tags in HTML is fixed by the HTML definition. The browser displays an HTML document by implementing the semantics of each tag.
6 1. Introduction (4): From HTML to XML In contrast, the repertoire of tags in XML is not set in advance. Further, there is no fixed semantics for any XML tag. With XML, markup languages evolved from specifying instructions on how to print parts of a document, to specifying the function of a document. E.g. <title> Databases </tile> can represent a section heading instead of text to be printed in large size, bold face. XML is particularly useful as a data format when an application must communicate with another application, or when it must integrate information from several other applications.
7 2. Structure of XML Data (1): Syntax Tag: label for a section of data. Element: section of data beginning with <tagname> and ending with matching </tagname>. tagname is the name of the element. Elements must be properly nested. Proper nesting: <account> <balance>.</balance> </account> Improper nesting: <account> <balance>.</account> </balance> Formally: every start tag must have a unique matching end tag, that is in the context of the same parent element. Elements directly nested within one element are called subelements or children. Every document must have a single top-level element (root element).
8 2. Structure of XML Data (2): Nested Elements Example: <bank-1> <customer> <customer-name> Hayes </customer-name> <customer-street> Main </customer-street> <customer-city> Harrison </customer-city> <account> <account-number> A-102 </account-number> <branch-name> Perryridge </branch-name> <balance> 400 </balance> </account> </customer> <customer> </customer> </bank-1>
9 2. Structure of XML Data (3): Motivation for Nesting Nesting of data is useful in data transfer. Example: elements representing customer-id, customer name, and address nested within an order element. Nested representations are widely used in XML data interchange applications to avoid joins. Nesting is not supported, or discouraged, in relational databases. -With multiple orders, customer name and address are stored redundantly. -Normalization replaces nested structures in each order by foreign keys into table storing customer name and address information. -Nesting is supported in object-relational databases. But nesting is appropriate when transferring data. -External application does not have direct access to data referenced by a foreign key
10 2. Structure of XML Data (4): Syntax Mixture of text with sub-elements is legal in XML. Example: <account> This account is seldom used any more. <account-number> A-102</account-number> <branch-name> Perryridge</branch-name> <balance>400 </balance> </account> This feature makes more sense in a document processing context, but is not particularly useful for representing more structured data (e.g. a database content) in XML. The text between the opening and the closing tag of an element is called the content of that element.
11 2. Structure of XML Data (5): Attributes Elements can have attributes. Example: <account acct-type = checking > <account-number> A-102 </account-number> <branch-name> Perryridge </branch-name> <balance> 400 </balance> </account> Attributes are specified by name=value pairs inside the starting tag of an element. An element may have several attributes, but each attribute name can only occur once. E.g.: <account acct-type = checking monthly-fee= 5 >
12 2. Structure of XML (6): Attributes vs. Subelements Distinction between subelement and attribute: -In the context of documents, attributes are part of markup, while subelement contents are part of the basic document contents. -In the context of data representation, the difference is unclear and may be confusing. Same information can be represented in two ways. E.g.: <account account-number = A-101 >. </account> <account> <account-number>a-101</account-number> </account> Suggestion: use attributes for identifiers of elements (to be discussed later), and use subelements for contents.
13 2. Structure of XML (7): More on XML Syntax Elements without subelements or text content can be abbreviated by ending the start tag with a /> and deleting the end tag. Such elements are called empty elements. E.g.: <account number= A-101 branch= Perryridge balance= 200 /> To store string data that may contain tags, without the tags being interpreted as subelements, use CDATA as below. E.g.: <![CDATA[<account> </account>]]> Here, <account> and </account> are treated as just strings.
14 2. Structure of XML (8): More on XML Syntax Apart from elements and attributes XML allows also processing instructions. A processing instruction can contain pretty much anything the document author wants to communicate to the XML processor (in the hope that the procesor knows what to do with this information). A processing instruction is a statement of the from: <? my-command bring some coffee?> Processing instructions are used fairly rarely. XML allows also comments which take the following form: <!- A comment -> It is allowed to occur everywhere instead inside the markups.
15 2. Structure of XML Data (9): Namespaces XML data has to be exchanged between organizations. Same tag name may have different meaning in different organizations, causing confusion on exchanged (or integrated) documents. For instance, the term Name might have different meaning and structure depending on whether we talk about people or companies: <Name> <First>John</First> <Last>Doe</Last> </Name> <Name> IBM </Name> Specifying a unique string as an element name avoids confusion.
16 2. Structure of XML Data (10): Namespaces Better solution: use namespace:element-name. The idea of a namespace is to prepend each tag or attribute by a uniform resource identifier (URI) which can be an abstract identifier (a general string of characters serving as a unique identifier) or a Uniform Resource Locator (URL) -- a Web page address. The abstract identifier avoids the use of unique names all over document.
17 2. Structure of XML Data (11): Namespaces Example: The following element bank has an attribute xmlns:fb, which declares that FB is defined as an abbreviation for the URL <bank xmlns:fb= > The abbreviation can then be used in various element tags within the document rooted at element bank: <FB:branch> <FB:branchname>Downtown</FB:branchname> <FB:branchcity>Brooklyn</FB:branchcity> </FB:branch> </bank>
18 2. Structure of XML Data (12): Namespaces One can declare several namespaces as long as their identifiers are distinct. Different subelements can then be associated with different namespaces. A default namespace can be defined, by using attribute xmlns instead of xmlns:fb in the root element of the document: <bank xmlns= xmlns:fb= > Attributes without an explicit namespace prefix would then belong to the default namespace. Namespace declarations have scope which can be nested like a program block.
19 2. Structure of XML (13): XML declaration The first line of an XML document is an XML declaration that is, a processing instruction that tells the XML processor that is dealing with some version of XML (other attributes might also be included there). E.g. <?xml version= 1.0?>
20 2. Structure of XML Data (14): Well Formed XML documents We can now define an important correctness requirement. An XML document is well formed if the following conditions hold: -It starts with an XML declaration to indicate the version of XML that is being used as well as any other relevant attributes. -It has a root element. -Every opening tag is followed by a matching closing tag, and the elements are properly nested inside each other. -An attribute can occur at most once in a given opening tag; its value must be provided; and its value must be quoted.
21 3. XML Document Schema Databases have schemas which are used to constraint what information can be stored in the database and to constraint the data types of the stored information. In contrast, by default, XML documents can be created without any associated schema: An element may have any subelement or attribute. While such freedom may occasionally be acceptable given the selfdescribing nature of the data format, it is not generally useful when: - XML documents must be processed automatically as part of an application, or - Large amounts of related data are to be formatted in XML. The document Type Definition (DTD) and the more recent XMLSchema are two document oriented schema mechanisms of the XML standard.
22 3.1 Document Type Definition (1): Introduction The Document Type Definition (DTD) is an optional part of an XML document. The main purpose of a DTD is much like that of a schema: to constraint the type of data present in the document. However, a DTD does not in fact constraint types in the sense of basic types like integers and strings. Instead, it only constraints the appearance of subelements and attributes within an element. The DTD is primarily a list of rules for what pattern of subelements appear within a document.
23 3.1 Document Type Definition (2): Syntax DTD constraints the structure of XML data. - What elements can occur. - What attributes can/must an element have. - What subelements can/must occur inside each element, and how many times. All values represented as strings in XML DTD syntax - <!ELEMENT element(subelements-specification)> - <!ATTLIST element (attributes) >
24 3.1 DTDs (3): Element Specification Subelements can be specified as: - names of elements, or - #PCDATA (parsed character data), i.e., character strings, or - EMPTY (no subelements) or ANY (anything can be a subelement) Example <!ELEMENT depositor (customer-name, account-number)> <!ELEMENT customer-name (#PCDATA)> <!ELEMENT account-number (#PCDATA)> Subelement specification may have regular expressions. E.g.: <!ELEMENT bank (( account customer depositor)+)> Notation: - alternatives (or) or more occurrences * - 0 or more occurrences? - 0 or 1 occurrence (optional element)
25 3.1 Document Type Definition (4): Example Example <!DOCTYPE bank [ <!ELEMENT bank ( ( account customer depositor)+)> <!ELEMENT account (account-number, branch-name, balance)> <!ELEMENT customer(customer-name, customer-street, customer-city)> <!ELEMENT depositor (customer-name, account-number)> <!ELEMENT account-number (#PCDATA)> <!ELEMENT branch-name (#PCDATA)> <!ELEMENT balance(#pcdata)> <!ELEMENT customer-name(#pcdata)> <!ELEMENT customer-street(#pcdata)> <!ELEMENT customer-city(#pcdata)> ]>
26 3.1 DTDs (5): Attribute Specification Attribute specification : for each attribute - Name - Type of attribute CDATA ID (identifier) or IDREF (ID reference) or IDREFS (multiple IDREFs) -- more on this later - Whether mandatory (#REQUIRED) has a default value (value), or neither (#IMPLIED) Examples <!ATTLIST account acct-type CDATA checking > <!ATTLIST customer customer-id ID #REQUIRED accounts IDREFS #REQUIRED >
27 3.1 DTDs (6): IDs and IDREFs An element can have at most one attribute of type ID. The ID attribute value of each element in an XML document must be distinct. - Thus the ID attribute value is an object identifier. An attribute of type IDREF must contain the ID value of an element in the same document. (Thus IDREF is a poor cousin of a foreign key) An attribute of type IDREFS contains a set of (0 or more) ID values. Each ID value must be the ID value of an element in the same document
28 3.1 Document Type Definition (7): Example Bank DTD with ID and IDREF attribute types. <!DOCTYPE bank-2[ <!ELEMENT bank-2 (account*, customer*)> <!ELEMENT account (branch-name, balance)> <!ATTLIST account account-number ID #REQUIRED owners IDREFS #REQUIRED> <!ELEMENT customer(customer-name, customer-street, customer-city)> <!ATTLIST customer customer-id ID #REQUIRED accounts IDREFS #REQUIRED> declarations for branch-name, balance, customer-name, customer-street and customer-city ]>
29 3.1 Document Type Definition (8): Example XML data with ID and IDREF attributes. <bank-2> <account account-number= A-401 owners= C100 C102 > <branch-name> Downtown </branch-name> <balance> 500 </balance> </account> <customer customer-id= C100 accounts= A-401 > <customer-name> Joe </customer-name> <customer-street> Monroe </customer-street> <customer-city> Madison </customer-city> </customer> <customer customer-id= C102 accounts= A-401 A-402 > <customer-name> Mary </customer-name> <customer-street> Erin </customer-street> <customer-city> Newark </customer-city> </customer> </bank-2>
30 3.1 DTDs (9): Valid XML Document A document that conforms to its DTD it said to be valid. The XML specification does not require processors to check each document for conformance to its DTD, because some applications might not care if the document is valid. XML does not even require that a document has a DTD but it does require that a document is well formed.
31 3.1 DTDs (10): Conformance Checking To require that an XML document is checked for conformance to a DTD we must specify this in the declaration of a document. E.g. the first line of our XML document can be changed to <?xml version= 1.0 standalone= no?> When the value of standalone is no the document needs to be checked against a separate DTD document.
32 3.1 DTDs (11): DTD file declaration The DTD document text can be included at the beginning of the XML document to allow the checking. Alternatively, the declaration of the XML document could be: <?xml version= 1.0 standalone= no?> <!DOCTYPE bank-2 SYSTEM = bank-2.dtd > Then, the DTD file should be stored in the same file system as the XML document and should be given the file name bank-2.dtd. Alternatively the XML document can give a URL where its DTD can be found.
33 3.1 DTDs (12): A Bigger Example Example The first part of an XML document
34 3.1 DTDs (13): A Bigger Example Example (cont.) The second part of the XML document
35 3.1 DTDs (14): A Bigger Example Example (cont.) A DTD for the previous XML document.
36 3.1 DTDs (15): Limitations of DTDs No typing of text elements and attributes. - All values are strings, no integers, reals, etc. Difficult to specify unordered sets of subelements. - Order is usually irrelevant in databases. - (A B)* allows specification of an unordered set, but Cannot ensure that each of A and B occurs only once. IDs and IDREFs are untyped. - The owners attribute of an account may contain a reference to another account, which is meaningless. owners attribute should ideally be constrained to refer to customer elements
37 3.2 XMLSchema (1): Features XML Schema is a more sophisticated schema language which addresses the drawbacks of DTDs. Supports: - Typing of values. E.g. integer, string, etc. Also, constraints on min/max values. - User defined types. - Is itself specified in XML syntax, unlike DTDs. More standard representation, but verbose. - Is integrated with namespaces. - Many more features. List types, uniqueness and foreign key constraints, inheritance BUT: significantly more complicated than DTDs, not yet widely used.
38 3.2 XMLSchema (2): Example <xsd:schema xmlns:xsd= <xsd:element name= bank type= BankType /> <xsd:element name= account > <xsd:complextype> <xsd:sequence> <xsd:element name= account-number type= xsd:string /> <xsd:element name= branch-name type= xsd:string /> <xsd:element name= balance type= xsd:decimal /> </xsd:squence> </xsd:complextype> </xsd:element>... definitions of customer and depositor <xsd:complextype name= BankType > <xsd:sequence> <xsd:element ref= account minoccurs= 0 maxoccurs= unbounded /> <xsd:element ref= customer minoccurs= 0 maxoccurs= unbounded /> <xsd:element ref= depositor minoccurs= 0 maxoccurs= unbounded /> </xsd:sequence> </xsd:complextype> </xsd:schema>
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 informationIntroduction. " 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 informationADT 2005 Lecture 7 Chapter 10: XML
ADT 2005 Lecture 7 Chapter 10: XML Stefan Manegold Stefan.Manegold@cwi.nl http://www.cwi.nl/~manegold/ Database System Concepts Silberschatz, Korth and Sudarshan The Challenge: Comic Strip Finder The Challenge:
More informationIntroduction to Semistructured Data and XML. Contents
Contents Overview... 106 What is XML?... 106 How the Web is Today... 108 New Universal Data Exchange Format: XML... 108 What is the W3C?... 108 Semistructured Data... 110 What is Self-describing Data?...
More informationXML: extensible Markup Language
Datamodels XML: extensible Markup Language Slides are based on slides from Database System Concepts Silberschatz, Korth and Sudarshan See www.db-book.com for conditions on re-use Many examples are from
More informationXML. Structure of XML Data XML Document Schema Querying and Transformation Application Program Interfaces to XML Storage of XML Data XML Applications
Chapter 10: XML XML Structure of XML Data XML Document Schema Querying and Transformation Application Program Interfaces to XML Storage of XML Data XML Applications Introduction XML: Extensible Markup
More informationLecture 7 Introduction to XML Data Management
Lecture 7 Introduction to XML Data Management Shuigeng Zhou April 16, 2014 School of Computer Science Fudan University Outline Structure of XML Data XML Document Schema Querying and Transformation Application
More information<account_number> A-101 </account_number># <branch_name> Downtown </branch_name># <balance> 500 </balance>#
Basic structure: # # A-101 # Downtown # 500 # # # # # # # Johnson#
More informationChapter 11 XML Data Modeling. Recent Development for Data Models 2016 Stefan Deßloch
Chapter 11 XML Data Modeling Recent Development for Data Models 2016 Stefan Deßloch Motivation Traditional data models (e.g., relational data model) primarily support structure data separate DB schema
More informationParallel/Distributed Databases XML
Parallel/Distributed Databases XML Mihai Pop CMSC424 most slides courtesy of Amol Deshpande Project due today Admin Sign up for demo, if you haven't already myphpbib.sourceforge.net - example publication
More informationHTML 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 informationADT XML, XPath & XQuery
Introduction to XML, XPath & XQuery Chapter 10 in Silberschatz, Korth, Sudarshan Database System Concepts Stefan Manegold Stefan.Manegold@cwi.nl http://www.cwi.nl/~manegold/ 2 Google Hits of 3-letter combinations
More informationXML Origin and Usages
Kapitel 1 XML Outline XML Basics DTDs, XML Schema XPath, XSLT, XQuery SQL/XML Application Programming Integration N. Ritter, WfWS, Kapitel1, SS 2005 1 XML Origin and Usages Defined by the WWW Consortium
More informationEMERGING TECHNOLOGIES
EMERGING TECHNOLOGIES XML (Part 3): XQuery Outline 1. Introduction 2. Structure of XML data 3. XML Document Schema 3.1. Document Type Definition (DTD) 3.2. XMLSchema 4. Data Model for XML documents. 5.
More informationDigital Asset Management 3. Multimedia Database System
Digital Asset Management 3. Multimedia Database System 2015-10-13 QoS Outline 1. MM content organization 2. MM database system architecture 3. MM system service model 4. Multimedia Data Storage 5. Multimedia
More informationCopyright 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 informationXML. 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 informationXML Basics for Web Services
XML Basics for Web Services Worflows und Web Services Kapitel 2 1 XML Origin and Usages Defined by the WWW Consortium (W3C) Originally intended as a document markup language not a database language Documents
More informationRelational Data Model is quite rigid. powerful, but rigid.
Lectures Desktop - 2 (C) Page 1 XML Tuesday, April 27, 2004 8:43 AM Motivation: Relational Data Model is quite rigid. powerful, but rigid. With the explosive growth of the Internet, electronic information
More informationWeek 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 informationPart 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 informationStructured 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 informationProf. Dr.-Ing. Stefan Deßloch AG Heterogene Informationssysteme Geb. 36, Raum 329 Tel. 0631/
Prof. Dr.-Ing. Stefan Deßloch AG Heterogene Informationssysteme Geb. 36, Raum 329 Tel. 0631/205 3275 dessloch@informatik.uni-kl.de Chapter 7 - XML XML Origin and Usages Defined by the WWW Consortium (W3C)
More informationChapter 7 - XML. Defined by the WWW Consortium (W3C) Originally intended as a document markup language, not a database language
Prof. Dr.-Ing. Stefan Deßloch AG Heterogene Informationssysteme Geb. 36, Raum 329 Tel. 0631/205 3275 dessloch@informatik.uni-kl.de Chapter 7 - XML XML Origin and Usages Defined by the WWW Consortium (W3C)
More informationSession [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 informationIntroduction to XML Zdeněk Žabokrtský, Rudolf Rosa
NPFL092 Technology for Natural Language Processing Introduction to XML Zdeněk Žabokrtský, Rudolf Rosa November 28, 2018 Charles Univeristy in Prague Faculty of Mathematics and Physics Institute of Formal
More informationDTD 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 informationFUNCTIONAL MARKUP For instance, with functional markup, text representing section headings. INTRODUCTION This part of chapter includes
FAMILY OF MARKUP LANGUAGES XML: Extensible Markup Language HTML: Hyper-Text Markup Language SGML: Standard Generalized Markup Language XML 1. A document markup language 2. Markup means anything in a document
More informationXML 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 informationSemistructured data, XML, DTDs
Semistructured data, XML, DTDs Introduction to Databases Manos Papagelis Thanks to Ryan Johnson, John Mylopoulos, Arnold Rosenbloom and Renee Miller for material in these slides Structured vs. unstructured
More informationXML: 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 informationInformation 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 informationCountryData 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 informationIntroduction to Semistructured Data and XML. Overview. How the Web is Today. Based on slides by Dan Suciu University of Washington
Introduction to Semistructured Data and XML Based on slides by Dan Suciu University of Washington CS330 Lecture April 8, 2003 1 Overview From HTML to XML DTDs Querying XML: XPath Transforming XML: XSLT
More informationXML. 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 information7.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 informationXML. Document Type Definitions XML Schema. Database Systems and Concepts, CSCI 3030U, UOIT, Course Instructor: Jarek Szlichta
XML Document Type Definitions XML Schema 1 XML XML stands for extensible Markup Language. XML was designed to describe data. XML has come into common use for the interchange of data over the Internet.
More informationXML. Solutions to Practice Exercises
C H A P T E R 1 0 XML Solutions to Practice Exercises 10.1 a. The XML representation of data using attributes is shown in Figure 10.1. b. The DTD for the bank is shown in Figure 10.2. 10.2 Query: 10.3
More informationChapter 13 - XML. Defined by the WWW Consortium (W3C) Originally intended as a document markup language, not a database language
Prof. Dr.-Ing. Stefan Deßloch AG Heterogene Informationssysteme Geb. 36, Raum 329 Tel. 0631/205 3275 dessloch@informatik.uni-kl.de Chapter 13 - XML XML Origin and Usages Defined by the WWW Consortium (W3C)
More informationIntroduction 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.. Cal Poly CPE/CSC 366: Database Modeling, Design and Implementation Alexander Dekhtyar..
.. Cal Poly CPE/CSC 366: Database Modeling, Design and Implementation Alexander Dekhtyar.. XML in a Nutshell XML, extended Markup Language is a collection of rules for universal markup of data. Brief History
More information10.3 Answer: 10.5 Answer:
C H A P T E R 1 0 XML Exercises 10.1 Answer: a. XML representation of data using attributes:
More informationCopyright 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 informationData 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 informationSemistructured Data and XML
Semistructured Data and XML Computer Science E-66 Harvard University David G. Sullivan, Ph.D. Structured Data The logical models we've covered thus far all use some type of schema to define the structure
More informationChapter 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 informationIntroduction to XML. Yanlei Diao UMass Amherst April 17, Slides Courtesy of Ramakrishnan & Gehrke, Dan Suciu, Zack Ives and Gerome Miklau.
Introduction to XML Yanlei Diao UMass Amherst April 17, 2008 Slides Courtesy of Ramakrishnan & Gehrke, Dan Suciu, Zack Ives and Gerome Miklau. 1 Structure in Data Representation Relational data is highly
More informationWell-formed XML Documents
Well-formed XML Documents Asst. Prof. Dr. Kanda Runapongsa Saikaew (krunapon@kku.ac.th) Dept. of Computer Engineering Khon Kaen University 1 Agenda Types of XML documents Why Well-formed XML Documents
More informationXML in Databases. Albrecht Schmidt. al. Albrecht Schmidt, Aalborg University 1
XML in Databases Albrecht Schmidt al@cs.auc.dk http://www.cs.auc.dk/ al Albrecht Schmidt, Aalborg University 1 What is XML? (1) Where is the Life we have lost in living? Where is the wisdom we have lost
More informationQuerying XML Data. Querying XML has two components. Selecting data. Construct output, or transform data
Querying XML Data Querying XML has two components Selecting data pattern matching on structural & path properties typical selection conditions Construct output, or transform data construct new elements
More informationUsing UML To Define XML Document Types
Using UML To Define XML Document Types W. Eliot Kimber ISOGEN International, A DataChannel Company Created On: 10 Dec 1999 Last Revised: 14 Jan 2000 Defines a convention for the use of UML to define XML
More informationXML - 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(One) Layer Model of the Semantic Web. Semantic Web - XML XML. Extensible Markup Language. Prof. Dr. Steffen Staab Dipl.-Inf. Med.
(One) Layer Model of the Semantic Web Semantic Web - XML Prof. Dr. Steffen Staab Dipl.-Inf. Med. Bernhard Tausch Steffen Staab - 1 Steffen Staab - 2 Slide 2 Extensible Markup Language Purpose here: storing
More informationOverview. 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 informationXML. Part II DTD (cont.) and XML Schema
XML Part II DTD (cont.) and XML Schema Attribute Declarations Declare a list of allowable attributes for each element These lists are called ATTLIST declarations Consists of 3 basic parts The ATTLIST keyword
More informationIntroduction 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 informationAuthor: Irena Holubová Lecturer: Martin Svoboda
NPRG036 XML Technologies Lecture 1 Introduction, XML, DTD 19. 2. 2018 Author: Irena Holubová Lecturer: Martin Svoboda http://www.ksi.mff.cuni.cz/~svoboda/courses/172-nprg036/ Lecture Outline Introduction
More informationEXAM 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 informationContents. 1 Introduction Basic XML concepts Historical perspectives Query languages Contents... 2
XML Retrieval 1 2 Contents Contents......................................................................... 2 1 Introduction...................................................................... 5 2 Basic
More informationXML: 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 informationA tutorial report for SENG Agent Based Software Engineering. Course Instructor: Dr. Behrouz H. Far. XML Tutorial.
A tutorial report for SENG 609.22 Agent Based Software Engineering Course Instructor: Dr. Behrouz H. Far XML Tutorial Yanan Zhang Department of Electrical and Computer Engineering University of Calgary
More informationIntroduction to XML (Extensible Markup Language)
Introduction to XML (Extensible Markup Language) 1 History and References XML is a meta-language, a simplified form of SGML (Standard Generalized Markup Language) XML was initiated in large parts by Jon
More informationCSCI3030U Database Models
CSCI3030U Database Models CSCI3030U RELATIONAL MODEL SEMISTRUCTURED MODEL 1 Content Design of databases. relational model, semistructured model. Database programming. SQL, XPath, XQuery. Not DBMS implementation.
More informationCOMP9321 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 informationXML Information Set. Working Draft of May 17, 1999
XML Information Set Working Draft of May 17, 1999 This version: http://www.w3.org/tr/1999/wd-xml-infoset-19990517 Latest version: http://www.w3.org/tr/xml-infoset Editors: John Cowan David Megginson Copyright
More informationChapter 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 informationIBM. 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 informationIntroduction to XML. National University of Computer and Emerging Sciences, Lahore. Shafiq Ur Rahman. Center for Research in Urdu Language Processing
Introduction to XML Shafiq Ur Rahman Center for Research in Urdu Language Processing National University of Computer and Emerging Sciences, Lahore XMLXML DTDDTD Related Related Standards Overview What
More informationPART. Oracle and the XML Standards
PART I Oracle and the XML Standards CHAPTER 1 Introducing XML 4 Oracle Database 10g XML & SQL E xtensible Markup Language (XML) is a meta-markup language, meaning that the language, as specified by the
More informationCSE 880. Advanced Database Systems. Semistuctured Data and XML
CSE 880 Advanced Database Systems Semistuctured Data and XML S. Pramanik 1 Semistructured Data 1. Data is self describing with schema embedded to the data itself. 2. Theembeddedschemacanchangewithtimejustlike
More informationXML 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 informationChapter 7: XML Namespaces
7. XML Namespaces 7-1 Chapter 7: XML Namespaces References: Tim Bray, Dave Hollander, Andrew Layman: Namespaces in XML. W3C Recommendation, World Wide Web Consortium, Jan 14, 1999. [http://www.w3.org/tr/1999/rec-xml-names-19990114],
More informationextensible Markup Language
extensible Markup Language XML is rapidly becoming a widespread method of creating, controlling and managing data on the Web. XML Orientation XML is a method for putting structured data in a text file.
More informationComp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward
Comp 336/436 - Markup Languages Fall Semester 2017 - Week 4 Dr Nick Hayward XML - recap first version of XML became a W3C Recommendation in 1998 a useful format for data storage and exchange config files,
More informationXML 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 informationCOPYRIGHTED 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 informationCSI 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 informationXML. 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 informationM359 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 informationA new generation of tools for SGML
Article A new generation of tools for SGML R. W. Matzen Oklahoma State University Department of Computer Science EMAIL rmatzen@acm.org Exceptions are used in many standard DTDs, including HTML, because
More informationCHAPTER 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 informationSDPL : 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 informationCSC 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 informationXML. Document Type Definitions. Database Systems and Concepts, CSCI 3030U, UOIT, Course Instructor: Jarek Szlichta
XML Document Type Definitions 1 XML XML stands for extensible Markup Language. XML was designed to describe data. XML has come into common use for the interchange of data over the Internet. 2 Well-Formed
More informationXML and DTD. Mario Alviano A.Y. 2017/2018. University of Calabria, Italy 1 / 28
1 / 28 XML and DTD Mario Alviano University of Calabria, Italy A.Y. 2017/2018 Outline 2 / 28 1 Introduction 2 XML syntax 3 Namespace 4 Document Type Definition (DTD) 5 Exercises Outline 3 / 28 1 Introduction
More informationMore 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 informationXML. Semi-structured data (SSD) SSD Graphs. SSD Examples. Schemas for SSD. More flexible data model than the relational model.
Semi-structured data (SSD) XML Semistructured data XML, DTD, (XMLSchema) XPath, XQuery More flexible data model than the relational model. Think of an object structure, but with the type of each object
More informationCOMP9321 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 informationIntroduction to Semistructured Data and XML
Introduction to Semistructured Data and XML Chapter 27, Part D Based on slides by Dan Suciu University of Washington Database Management Systems, R. Ramakrishnan 1 How the Web is Today HTML documents often
More informationCSI 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 informationConstructing a Document Type Definition (DTD) for XML
Constructing a Document Type Definition (DTD) for XML Abstract John W. Shipman 2013-08-24 12:16 Describes the Document Type Definition notation for describing the schema of an SGML or XML document type.
More informationUNIT 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 informationIntroduction to Database Systems CSE 414
Introduction to Database Systems CSE 414 Lecture 14-15: XML CSE 414 - Spring 2013 1 Announcements Homework 4 solution will be posted tomorrow Midterm: Monday in class Open books, no notes beyond one hand-written
More informationCS145 Introduction. About CS145 Relational Model, Schemas, SQL Semistructured Model, XML
CS145 Introduction About CS145 Relational Model, Schemas, SQL Semistructured Model, XML 1 Content of CS145 Design of databases. E/R model, relational model, semistructured model, XML, UML, ODL. Database
More informationThe Semi-Structured Data Model. csc343, Introduction to Databases Diane Horton originally based on slides by Jeff Ullman Fall 2017
The Semi-Structured Data Model csc343, Introduction to Databases Diane Horton originally based on slides by Jeff Ullman Fall 2017 Recap: Data models A data model is a notation for describing data, including:
More informationIntro 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 informationPart II: Semistructured Data
Inf1-DA 2011 2012 II: 22 / 119 Part II Semistructured Data XML: II.1 Semistructured data, XPath and XML II.2 Structuring XML II.3 Navigating XML using XPath Corpora: II.4 Introduction to corpora II.5 Querying
More informationSemistructured Content
On our first day Semistructured Content 1 Structured data : database system tagged, typed well-defined semantic interpretation Semi-structured data: tagged - XML (HTML?) some help with semantic interpretation
More informationCSS, 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 informationXML. extensible Markup Language. Overview. Overview. Overview XML Components Document Type Definition (DTD) Attributes and Tags An XML schema
XML extensible Markup Language An introduction in XML and parsing XML Overview XML Components Document Type Definition (DTD) Attributes and Tags An XML schema 3011 Compiler Construction 2 Overview Overview
More information