Introduction & Motivation. Course Outline. Arrangements. Presentation vs Structure. Markup and Markup Language. Main Topic: Two XML Query Models

Size: px
Start display at page:

Download "Introduction & Motivation. Course Outline. Arrangements. Presentation vs Structure. Markup and Markup Language. Main Topic: Two XML Query Models"

Transcription

1 Querying XML Documents and Data CBU Summer School (2 ECTS) Prof. Pekka Kilpeläinen inen Univ of Kuopio, Dept of Computer Science Pekka.Kilpelainen@cs.uku.fi Introduction & Motivation order XML Internet XML appears everywhere How to query it? invoice CBU Summerschool '07 Querying XML: Introduction 2 Main Topic: Two XML Query Models Course Outline Region algebra for retrieval of structuded text "lightweight"» reduced language; for ad-hoc files; efficient free implementation XQuery for general querying/manipulation of XML "heavy"» comprehensive and complex language; for (data viewed as) XML only; production-use use implementations? CBU Summerschool '07 Querying XML: Introduction 3 Intro and Arrangements; Structured documents 1 Review of XML Basics 1.1 XML and XML docs; 1.2 Document grammars 1.3. XML DTDs; ; 1.4 XML Namespaces 1.5 XML Schema 2 Region Algebra and sgrep 3 W3C XQuery,, and XPath 2.0 (Apologies for potential dis-organization!) CBU Summerschool '07 Querying XML: Introduction 4 Arrangements Background: W3C Recommendations (XML, XQuery) Reports (Region Algebra, sgrep) Earlier courses; own research and experiments Some material (to be posted) at Plan: Lectures 12 h; hands-on exercises 8 h Structured Documents Document: a structured representation of information on some medium ( ( message) normally for a human reader» memos, manuals, articles, books, also application-to to-application messages» e.g., btw client and server in Web Services "prose-oriented oriented XML" vs "data-oriented XML" can be treated as a single unit» (a web page vs a web site) CBU Summerschool '07 Querying XML: Introduction 5 CBU Summerschool '07 Querying XML: Introduction 6 Presentation vs Structure Presentation informs the human reader about the meaning of text and the role of its parts Markup indicates the presentation or the meaning of different parts of text» originally hand-written annotations for the typesetter nowadays primarily codes embedded in digital documents; <Tags> CBU Summerschool '07 Querying XML: Introduction 7 Markup and Markup Language Procedural markup commands (start boldface, produce empty line, indent 5 mm,...) proprietary word processor formats, nroff, TeX,,... Descriptive or generic markup indicates conceptual structures using chosen names LaTeX: \begin{abstract}... \end{abstract} HTML: <TITLE>... </TITLE> Markup language a fixed set of markup notations (e.g. nroff, TeX,, HTML, SVG, ) CBU Summerschool '07 Querying XML: Introduction 8

2 Structure in Documents Hierarchy or nesting is ubiquitous Sections w. subsections etc (Also overlapping hierarchies!) Linear order essential in prose documents less important in documents representing data objects Hypertext and cross-references references XML: proper hierarchies, tree-like structures, with cross-references references via attribute values 1 Document Instances and Grammars Overview of fundamentals, and some details, of XML 1.1 XML and XML documents 1.2 Basics of document grammars 1.3 Basics of XML DTDs 1.4 XML Namespaces 1.5 XML Schema CBU Summerschool '07 Querying XML: Introduction 9 CBU Summerschool '07 Querying XML: Introduction XML and XML documents What is XML? XML - Extensible Markup Language, W3C Recommendation, February 1998 not an official standard, but a stable industry standard 2 nd Ed 2000, 3 rd Ed 2004, 4 th Ed 2006» editorial revisions, not new versions of XML 1.0 a simplified subset of SGML, Standard Generalized Markup Language, ISO 8879:1987 valid XML documents are also SGML documents Extensible Markup Language is not a markup language! does not fix a tag set nor its semantics (like markup languages like HTML do) XML documents have no inherent (processing or presentation) semantics even though many think that XML is semantic or self- describing; See next CBU Summerschool '07 Querying XML: Introduction 11 CBU Summerschool '07 Querying XML: Introduction 12 Semantics of XML Markup What is XML (2)? Meaning of this XML fragment? The application has to understand the tags But better off with the tags, though! CBU Summerschool '07 Querying XML: Introduction 13 XML is a way to use markup to represent information a metalanguage» supports definition of specific markup languages through XML DTDs (Document Type Definitions) or Schemas» E.g. XHTML a reformulation of HTML using XML Often XML XML + XML technology CBU Summerschool '07 Querying XML: Introduction 14 How does it look? Essential Features of XML <?xml version= encoding= iso iso ?> <invoice num= > <client clnum= > <name>pekka Kilpeläinen</ inen</name> < >kilpelai@cs.uku.fi</ </ > </client client> <item price= unit= EUR EUR > XML Handbook</ </item> <item price= unit= FIM FIM > XSLT Programmer s Ref</ </item> </invoice invoice> CBU Summerschool '07 Querying XML: Introduction 15 Overview of XML essentials many details skipped Learn to consult original sources (specifications, documentation etc) for details!» The XML specification is easy to browse First of all, XML is a textual or character-based way to represent data CBU Summerschool '07 Querying XML: Introduction 16

3 XML Document Characters External Aspects of Characters XML documents are made of ISO (32-bit) characters; ; in practice of their 16-bit Unicode subset (used, e.g., in Java) Unicode 2.0 defines almost 39,000 distinct characters Characters have three different aspects: their identification as numeric code points their representation by bytes their visual presentation Documents are stored/transmitted as a sequence of bytes (of 8 bits). An encoding determines how characters are represented by bytes. UTF-8 8 ( 7-bit( ASCII) is the XML default encoding encoding="koi8r" should be OK for Cyrillic texts» (I cannot comment on parser support) A font determines the visual presentation of characters CBU Summerschool '07 Querying XML: Introduction 17 CBU Summerschool '07 Querying XML: Introduction 18 XML Encoding of Structure 1 XML Encoding of Structure 2 XML is, essentially, a textual encoding scheme of labelled, ordered and attributed trees: internal nodes are elements labelled by type names leaves are text nodes labelled by string values, or empty element nodes the left-to to-right order of children of a node matters element nodes may carry attributes = (name, string-value) pairs This view is shared by many XML techniques (DOM, XPath,, XSLT, XQuery,,...) CBU Summerschool '07 Querying XML: Introduction 19 XML encoding of a tree corresponds to a pre-order walk start of an element node with type name A denoted by a start tag <A>, and its end denoted by end tag </A> possible attributes written within the start tag: <A attr 1 = value 1 attr n = value n >» Names attr 1,,attr n must be distinct text nodes written as their string value CBU Summerschool '07 Querying XML: Introduction 20 XML Encoding of Structure: Example XML: Logical Document Structure W Hello S E A=1 <S> <W> Hello </W><E <E A= 1 /> <W> world! </W> </S> W world! Elements indicated by matching (case-sensitive!) sensitive!) tags <ElementTypeName> </ElementTypeName ElementTypeName> can contain text and/or subelements can be empty: <elem-type></ type></elem-type> or <elem-type/> (e.g. <br/> in XHTML) unique root element > document a single tree CBU Summerschool '07 Querying XML: Introduction 21 CBU Summerschool '07 Querying XML: Introduction 22 Logical document structure (2) Attributes name-value pairs attached to elements in start-tag tag after the element type name <div class="preface" date='990126'> forms "..." and '...' are interchangeable Also: <div class="preface" date='990126'> comments outside other markup --> <?note this would be passed to the application as a processing instruction named note?> CBU Summerschool '07 Querying XML: Introduction 23 CDATA Sections CDATA Sections to include XML markup characters as textual content <![CDATA[ Here we can easily include markup characters and, for example, code fragments: <example>if (Count < 5 && Count > 0) </example> ]]> CBU Summerschool '07 Querying XML: Introduction 24

4 Two levels of correctness (1) XML docs and valid XML docs Well-formed documents roughly: follows the syntax of XML, markup correct (elements properly nested, tag names match, attributes of an element have unique names,...) violation is a fatal error Valid documents (in addition to being well-formed) obey an associated grammar (DTD/Schema) CBU Summerschool '07 Querying XML: Introduction 25 DTD-valid documents Schema-valid documents XML documents = well-formed XML documents CBU Summerschool '07 Querying XML: Introduction 26 An XML Processor (Parser) 1.2 Basics of document grammars Reads XML documents and reports their contents to an application relieves the application from details of markup XML Recommendation specifies: recognition of characters as markup or data; what information to pass to applications; how to check the correctness of documents; validation based on comparing document against its grammar Next: Basics of document grammars CBU Summerschool '07 Querying XML: Introduction 27 DTDs are variations of context-free grammars (CFGs), which are widely used to syntax specification (programming languages, XML, ) and to parser/compiler generation (e.g. YACC/GNU Bison) No knowledge of them is necessary, but connections with CFGs may be informative for those that know about them CBU Summerschool '07 Querying XML: Introduction 28 DTD/CFG Correspondence Example: Three Authors of a Ref DTD XML document element type element type declaration #PCDATA CFG parse/syntax syntax tree nonterminal production terminal Author Author Aho Hopcroft Ref Author Title PublData... Ullman The Design and Analysis... Ref > Author Title PublData P, Author Author Author Title PublData L(Author Title PublData) CBU Summerschool '07 Querying XML: Introduction 29 CBU Summerschool '07 Querying XML: Introduction 30 Extended Productions 1.3 Basics of XML DTDs Notice the regular expressions in productions to describe (potentially infinite) sequences That is, we are using extended CFGs content models (of a DTD) correspond to regular expressions (in an ECFG production) > number of element s s children generally unlimited A Document Type Declaration provides a grammar (document( type definition, DTD) ) for a class of documents [Defined in XML Rec] Syntax (in the prolog of a document instance): <!DOCTYPE rootelemtype SYSTEM "ex.dtd" "external subset" in file ex.dtd --> [ <! - an optional "internal subset" --> ] > DTD = union of the external and internal subset internal has preference for attribute and entity decls CBU Summerschool '07 Querying XML: Introduction 31 CBU Summerschool '07 Querying XML: Introduction 32

5 Markup Declarations DTD consists of markup declarations element type declarations» productions of ECFGs attribute-list declarations» for declared element types entity declarations» for physical structures notation declarations logical structures CBU Summerschool '07 Querying XML: Introduction 33 How do Declarations Look Like? <!ELEMENT invoice (client, item+)> <!ATTLIST invoice num NMTOKEN #REQUIRED> <!ELEMENT client (name, ?)> <!ATTLIST client num NMTOKEN #REQUIRED> <!ELEMENT name (#PCDATA)> <!ELEMENT (#PCDATA)> <!ELEMENT item (#PCDATA)> <!ATTLIST item price unit NMTOKEN #REQUIRED (FIM EUR) EUR > CBU Summerschool '07 Querying XML: Introduction 34 Element Type Declarations General form: <!ELEMENT elementtypename (E)> where E is a content model regular expression of element names Content model operators: E F : choice E, F: concatenation E? : optional E : zero or more E+ : one or more (E) : grouping Must group: (A,B) C or A,(B C), but A,B C forbidden CBU Summerschool '07 Querying XML: Introduction 35 Attribute-List Declarations Can declare attributes for elements: Name, data type and possible default value Example: <!ATTLIST FIG id ID #IMPLIED descr CDATA #REQUIRED class (a b c) "a Semantics mainly up to the application processor checks that ID attributes are unique and that targets of IDREF attributes exist CBU Summerschool '07 Querying XML: Introduction 36 Mixed, Empty and Arbitrary Content Mixed content: <!ELEMENT P (#PCDATA I IMG)> may contain text and elements Empty content: <!ELEMENT IMG EMPTY> Unrestricted content: ANY (= (#PCDATA choice-of of-all-declared-element-types) ) Entities (1) Named storage units of XML documents Multiple uses: character entities:» < < and < all expand to < (treated as data, not as start-of of-markup)» other predefined entities: & &gt& gt; ; &apos& apos; ; &quote; expand to &, >, ' and " general entities are shorthand notations: <!ENTITY UKU "University of Kuopio CBU Summerschool '07 Querying XML: Introduction 37 CBU Summerschool '07 Querying XML: Introduction 38 Entities (2) physical storage units comprising a document parsed entities <!ENTITY chap1 SYSTEM " document entity is the starting point of processing entities and elements must nest properly: <!DOCTYPE doc [ <!ENTITY chap1 ( as above ) > ]> <doc> &chap1; </doc> <sec num="1 </sec> <sec num="2 </sec> CBU Summerschool '07 Querying XML: Introduction 39 Unparsed Entities and Parameter Entities Unparsed entities allow XML documents refer to external binary objects like graphics files XML processor handles only text I've rarely used these Parameter entities are used in DTDs useful for modularizing declarations We skip these CBU Summerschool '07 Querying XML: Introduction 40

6 1.4 XML Namespaces Documents often comprise parts processed by different applications (and/or defined by different grammars) for example, in XSLT scripts: <xsl:template match="doc/title <H1> HTML <xsl:apply-templates /> elements </H1> XSLT </xsl:template xsl:template> elements/ instructions How to manage multiple sets of names? CBU Summerschool '07 Querying XML: Introduction 41 XML Namespaces (2/5) Solution: By introducing (arbitrary) local name prefixes, and binding them to (fixed) globally unique URIs For example, the local prefix xsl: conventionally used in XSLT scripts CBU Summerschool '07 Querying XML: Introduction 42 XML Namespaces briefly (3/5) XML Namespaces (4/5) Namespace identified by a URI (through the associated local prexif) e.g. for XSLT conventional but not required to use URLs the identifier has to be unique, but no need to be an address Association inherited to sub-elements see the next example (of an XSLT script) <xsl:stylesheet version="1.0" xmlns:xsl=" xmlns=" :// XHTML is the default namespace --> <xsl:template match="doc/title <H1> <xsl:apply-templates /> </H1> </xsl:template xsl:template> </xsl:stylesheet xsl:stylesheet> CBU Summerschool '07 Querying XML: Introduction 43 CBU Summerschool '07 Querying XML: Introduction 44 XML Namespaces briefly (5/5) 1.5 XML Schemas A quick look at XML Schema W3C Recommendation, 1 st Mechanism built on top of basic XML overloads attribute syntax (xmlns( xmlns:) ) to introduce namespaces does not affect validation» namespace attributes have to be declared for DTD- validity» all element type names have to be declared (with their initial prefixes!) > Other schema languages (XML Schema, Relax NG) better for validating documents with Namespaces st Ed. May, 2001; 2 nd Ed. Oct, 2004:» XML Schema Part 0: Primer (readable non- normative introduction; Recommended)» XML Schema Part 1: Structures» XML Schema Part 2: Datatypes W3C Draft (didn't lead anywhere?):» Formal Description,, 9/2001 CBU Summerschool '07 Querying XML: Introduction 45 CBU Summerschool '07 Querying XML: Introduction 46 Advantages of XML Schema (1) XSDL built-in in types (Part 2, Chap. 3) XML syntax easier to manipulate by programs (than DTDs) Compatibility with namespaces can validate against declarations from multiple sources Content datatypes 44 built-in in datatypes (including primitive Java datatypes, datatypes of SQL, and XML attribute types) mechanisms to derive user-defined datatypes used as types of XQuery CBU Summerschool '07 Querying XML: Introduction 47 CDATA NB: all simple values in documents strings : XML attribute types CBU Summerschool '07 Querying XML: Introduction documents 48

7 Advantages of XML Schema (2) Advantages of XML Schema (3) Element names and content types independent; Compare with For example, could define titles» of people as Mr. Mr. / Mrs. Mrs. / Ms. Ms.,, and» of chapters as strings > extend the power of CFGs/DTDs» where non-terminal / tag-name alone determines its allowed content (Is this relevant in practice?) Ability to specify uniqueness and keys within selected parts of the document for example, that titles of chapters should be unique; or key attributes of relations uses XPath Support for schema documentation element annotation with sub-elements documentation (for human readers) and appinfo (for applications) Only these contain text (#PCDATA) CBU Summerschool '07 Querying XML: Introduction 49 CBU Summerschool '07 Querying XML: Introduction 50 Disadvantages of XML Schema XSDL through Example Complexity (esp. Rec Part 1!) vs. added power > a long learning curve > slow adoption by users Immaturity of implementations (?) W3C web site mentions ~ 60 tools/processors Apache Xerces claims full XSDL support Some features difficult to implement efficiently Alternative schema languages have been suggested, too CBU Summerschool '07 Querying XML: Introduction 51 Next: walk-through of an XML schema example from Chapter 2 of the XML Schema Primer Consider modelling purchase orders like below: <purchaseorder orderdate=" <shipto country="us <name>alice Smith</name name> <street>123 Maple Street</ </street> <city>mill Valley</city> <state>ca</ </state> <zip>90952</zip </shipto shipto> CBU Summerschool '07 Querying XML: Introduction 52 purchaseorder instance continues End of the example instance <billto country="us <name>robert Smith</name name> <street>8 Oak Avenue</street street> <city>old Town</city> <state>pa</ </state> <zip>95819</zip > </billto billto> <comment>hurry,, my lawn is wild!</!</comment> <items><item partnum="872-aa <productname>lawnmower</ </productname> <quantity>1</quantity <USPrice>148.95</USPrice <comment>only if electric</ </comment> </item item> CBU Summerschool '07 Querying XML: Introduction 53 <item partnum="926-aa <productname>baby Phone</ </productname> <quantity>1</quantity <USPrice>39.98</USPrice <shipdate> </ 21</shipDate> </item item> </items items> </purchaseorder purchaseorder> Next: A schema for such purchase orders CBU Summerschool '07 Querying XML: Introduction 54 The Purchase Order Schema (1/5) <xs:schema xmlns:xs=" :// name="purchaseorder" type="pordtype name="comment" type="xs:string <xs:complextype name="pordtype <xs:sequence> name="shipto" type="usaddr name="billto" type="usaddr ref="comment" " minoccurs="0 name="items" type="items </xs:sequence xs:sequence> <xs:attribute name="orddate" type="xs:date </xs:complextype xs:complextype> CBU Summerschool '07 Querying XML: Introduction 55 The Purchase Order Schema (2/5) <xs:complextype name="usaddr <xs:sequence> name="name" type="xs:string name="street" type="xs:string name="city" type="xs:string name="state" type="xs:string name="zip" type="xs:decimal </xs:sequence xs:sequence> <xs:attribute name="country" type="xs:nmtoken" fixed="us </xs:complextype xs:complextype> CBU Summerschool '07 Querying XML: Introduction 56

8 The Purchase Order Schema (3/5) <xs:complextype name="items <xs:sequence> name="item" minoccurs="0" maxoccurs="unbounded <xs:complextype> anonymous type for item <xs:sequence> name="productname" type="xs:string name="quantity <xs:simpletype> <xs:restriction anon. type base="xs:positiveinteger for quantity <xs:maxexclusive value="100 </xs:restriction xs:restriction> </xs:simpletype xs:simpletype> </xs:element xs:element> CBU Summerschool '07 Querying XML: Introduction 57 The Purchase Order Schema (4/5) name="usprice" type="xs:decimal ref="comment" minoccurs="0 name="shipdate" type="xs:date" " minoccurs="0 </xs:sequence xs:sequence> <xs:attribute name="partnum" type="sku" use="required </xs:complextype xs:complextype> </xs:element xs:element> > item --> </xs:sequence xs:sequence> </xs:complextype xs:complextype> > Items --> CBU Summerschool '07 Querying XML: Introduction 58 The Purchase Order Schema (5/5) Type for Stock Keeping Units, (codes for identifying products): --> <xs:simpletype name="sku <xs:restriction base="xs:string defined by a regular expr: --> <xs:pattern value="\d{3} d{3}-[a-z]{2}" /> 3 digits, hyphen,, 2 letters --> </xs:restriction xs:restriction> </xs:simpletype xs:simpletype> </xs:schema xs:schema> CBU Summerschool '07 Querying XML: Introduction 59 XML Schema: Summary XSDL: an XML-based grammar formalism W3C Recommendation; Alternative to DTDs» support for namespaces» richer content and attribute datatypes Well accepted(?) in XML industry e.g., to describe messages btw clients and servers in Web services; ; (See, e.g., Web Services Description Language, Vers.. 2.0, W3C Draft 3/07) for typing of XQuery CBU Summerschool '07 Querying XML: Introduction 60

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

Constraints, Meta UML and XML. Object Constraint Language

Constraints, Meta UML and XML. Object Constraint Language Constraints, Meta UML and XML G. Falquet, L. Nerima Object Constraint Language Text language to construct expressions for guards conditions pre/post conditions assertions actions Based on navigation expressions,

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

X(ml)S(chema)D(definition) Complex Types Indicators

X(ml)S(chema)D(definition) Complex Types Indicators X(ml)S(chema)D(definition) Complex Types Indicators We can control HOW elements are to be used in documents with indicators. Indicators We have seven types of indicators: Order indicators: All Choice Sequence

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

USING THE STRUCTURE OF XML TO GENERATE NOTIFICATIONS AND SUBSCRIPTIONS IN SIENA. Chris Corliss

USING THE STRUCTURE OF XML TO GENERATE NOTIFICATIONS AND SUBSCRIPTIONS IN SIENA. Chris Corliss USING THE STRUCTURE OF XML TO GENERATE NOTIFICATIONS AND SUBSCRIPTIONS IN SIENA by Chris Corliss A thesis submitted in partial fulfillment of the requirements for the degree of Masters of Science in Computer

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

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

Generating XML-to-RDF transformations from high level specifications

Generating XML-to-RDF transformations from high level specifications Generating XML-to-RDF transformations from high level specifications M. Sc. Telematics Final Project Muzaffar Mirazimovich Igamberdiev Graduation committee: Prof. Dr. Ir. M. Aksit Dr. Ir. K.G. van den

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

Author: Irena Holubová Lecturer: Martin Svoboda

Author: 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 information

Schemas (documentation for 6.1)

Schemas (documentation for 6.1) SWAD-Europe: WP6.3b Pragmatic Methods for Mapping Semantics from XML Schemas (documentation for 6.1) Project name: Semantic Web Advanced Development for Europe (SWAD-Europe) Project Number: IST-2001-34732

More information

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

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

Chapter 1: Semistructured Data Management XML

Chapter 1: Semistructured Data Management XML Chapter 1: Semistructured Data Management XML XML - 1 The Web has generated a new class of data models, which are generally summarized under the notion semi-structured data models. The reasons for that

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

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 extensible Markup Language

XML extensible Markup Language extensible Markup Language Eshcar Hillel Sources: http://www.w3schools.com http://java.sun.com/webservices/jaxp/ learning/tutorial/index.html Tutorial Outline What is? syntax rules Schema Document Object

More information

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

Software Engineering Methods, XML extensible Markup Language. Tutorial Outline. An Example File: Note.xml XML 1 extensible Markup Language Eshcar Hillel Sources: http://www.w3schools.com http://java.sun.com/webservices/jaxp/ learning/tutorial/index.html Tutorial Outline What is? syntax rules Schema Document Object

More information

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

Session 23 XML. XML Reading and Reference. Reading. Reference: Session 23 XML. Robert Kelly, 2018 Session 23 XML Reading XML Reading and Reference https://en.wikipedia.org/wiki/xml Reference: XML in a Nutshell (Ch. 1-3), available in Safari On-line 2 1 Lecture Objectives Understand the goal of application

More information

Chapter 1: Semistructured Data Management XML

Chapter 1: Semistructured Data Management XML Chapter 1: Semistructured Data Management XML 2006/7, Karl Aberer, EPFL-IC, Laboratoire de systèmes d'informations répartis XML - 1 The Web has generated a new class of data models, which are generally

More information

Introduction to XML Zdeněk Žabokrtský, Rudolf Rosa

Introduction 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 information

XML and Web Services

XML and Web Services XML and Web Services Lecture 8 1 XML (Section 17) Outline XML syntax, semistructured data Document Type Definitions (DTDs) XML Schema Introduction to XML based Web Services 2 Additional Readings on XML

More information

XML Concept. What is XML. Examples of XML documents

XML Concept. What is XML. Examples of XML documents What is XML XML Concept 1. XML Concept 2. XML: Defining Well-formed documents 3. XSD : Defining Valid documents, Introduction to Schema Instructor: Professor Izidor Gertner, e-mail: csicg@csfaculty.engr.ccny.cuny.edu

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

extensible Markup Language

extensible Markup Language What is XML? The acronym means extensible Markup Language It is used to describe data in a way which is simple, structured and (usually) readable also by humans Developed at the end of the ninenties by

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

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

Chapter 3 Brief Overview of XML

Chapter 3 Brief Overview of XML Slide 3.1 Web Serv vices: Princ ciples & Te echno ology Chapter 3 Brief Overview of XML Mike P. Papazoglou & mikep@uvt.nl Slide 3.2 Topics XML document structure XML schemas reuse Document navigation and

More information

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

Semantic Web. XML and XML Schema. Morteza Amini. Sharif University of Technology Fall 94-95 ه عا ی Semantic Web XML and XML Schema Morteza Amini Sharif University of Technology Fall 94-95 Outline Markup Languages XML Building Blocks XML Applications Namespaces XML Schema 2 Outline Markup Languages

More information

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

XML Structures. Web Programming. Uta Priss ZELL, Ostfalia University. XML Introduction Syntax: well-formed Semantics: validity Issues XML Structures Web Programming Uta Priss ZELL, Ostfalia University 2013 Web Programming XML1 Slide 1/32 Outline XML Introduction Syntax: well-formed Semantics: validity Issues Web Programming XML1 Slide

More information

XMLSchema2ShEx: Converting XML validation to RDF validation

XMLSchema2ShEx: Converting XML validation to RDF validation Semantic Web 0 (0) 1 1 IOS Press XMLSchema2ShEx: Converting XML validation to RDF validation Herminio Garcia-Gonzalez a, Jose Emilio Labra-Gayo a, a Department of Computer Science, University of Oviedo,

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

웹기술및응용. XML Schema 2018 년 2 학기. Instructor: Prof. Young-guk Ha Dept. of Computer Science & Engineering

웹기술및응용. XML Schema 2018 년 2 학기. Instructor: Prof. Young-guk Ha Dept. of Computer Science & Engineering 웹기술및응용 XML Schema 2018 년 2 학기 Instructor: Prof. Young-guk Ha Dept. of Computer Science & Engineering Outline History Comparison with DTD Syntax Definitions and declaration Simple types Namespace Complex

More information

extensible Markup Language

extensible Markup Language What is XML? The acronym means extensible Markup Language It is used to describe data in a way which is simple, structured and (usually) readable also by humans Developed at the end of the ninenties by

More information

Big Data 9. Data Models

Big Data 9. Data Models Ghislain Fourny Big Data 9. Data Models pinkyone / 123RF Stock Photo 1 Syntax vs. Data Models Physical view Syntax this is text. 2 Syntax vs. Data Models a Logical view

More information

Marker s feedback version

Marker s feedback version Two hours Special instructions: This paper will be taken on-line and this is the paper format which will be available as a back-up UNIVERSITY OF MANCHESTER SCHOOL OF COMPUTER SCIENCE Semi-structured Data

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

Introduction 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. 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 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

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

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

Modelling XML Applications

Modelling XML Applications Modelling XML Applications Patryk Czarnik XML and Applications 2013/2014 Lecture 2 14.10.2013 XML application (recall) XML application (zastosowanie XML) A concrete language with XML syntax Typically defined

More information

Introduction to XML. An Example XML Document. The following is a very simple XML document.

Introduction to XML. An Example XML Document. The following is a very simple XML document. Introduction to XML Extensible Markup Language (XML) was standardized in 1998 after 2 years of work. However, it developed out of SGML (Standard Generalized Markup Language), a product of the 1970s and

More information

Introduction to XML (Extensible Markup Language)

Introduction 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 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. 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

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

A tutorial report for SENG Agent Based Software Engineering. Course Instructor: Dr. Behrouz H. Far. XML Tutorial.

A 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 information

extensible Markup Language (XML) Basic Concepts

extensible Markup Language (XML) Basic Concepts (XML) Basic Concepts Giuseppe Della Penna Università degli Studi di L Aquila dellapenna@univaq.it http://www.di.univaq.it/gdellape This work is licensed under the Creative Commons Attribution-NonCommercial-ShareAlike

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.. .. 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 information

Markup Languages SGML, HTML, XML, XHTML. CS 431 February 13, 2006 Carl Lagoze Cornell University

Markup Languages SGML, HTML, XML, XHTML. CS 431 February 13, 2006 Carl Lagoze Cornell University Markup Languages SGML, HTML, XML, XHTML CS 431 February 13, 2006 Carl Lagoze Cornell University Problem Richness of text Elements: letters, numbers, symbols, case Structure: words, sentences, paragraphs,

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

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

Comp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward

Comp 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 information

Appendix H XML Quick Reference

Appendix H XML Quick Reference HTML Appendix H XML Quick Reference What Is XML? Extensible Markup Language (XML) is a subset of the Standard Generalized Markup Language (SGML). XML allows developers to create their own document elements

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

XML Schema Part 0: Primer Second Edition

XML Schema Part 0: Primer Second Edition Page 1 of 81 XML Schema Part 0: Primer Second Edition W3C Recommendation 28 October 2004 This version: http://www.w3.org/tr/2004/rec-xmlschema-0-20041028/ Latest version: Previous version: http://www.w3.org/tr/2004/per-xmlschema-0-20040318/

More information

XML Schema Part 0: Primer

XML Schema Part 0: Primer torsdag 6 september 2001 XML Schema Part 0: Primer Page: 1 XML Schema Part 0: Primer W3C Recommendation, 2 May 2001 This version: http://www.w3.org/tr/2001/rec-xmlschema-0-20010502/ Latest version: Previous

More information

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

Notes. Any feedback/suggestions? IS 651: Distributed Systems Notes Grading statistics Midterm1: average 10.60 out of 15 with stdev 2.22 Total: average 15.46 out of 21 with stdev 2.80 A range: [18.26, 23] B range: [12.66, 18.26) C or worse range: [0, 12.66) The curve

More information

CS/INFO 330: Applied Database Systems

CS/INFO 330: Applied Database Systems CS/INFO 330: Applied Database Systems XML Schema Johannes Gehrke October 31, 2005 Annoucements Design document due on Friday Updated slides are on the website This week: Today: XMLSchema Wednesday: Introduction

More information

XML. Part II DTD (cont.) and XML Schema

XML. 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 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

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

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

XML. 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 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

extensible Markup Language

extensible 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 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

PART. Oracle and the XML Standards

PART. 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 information

Chapter 7: XML Namespaces

Chapter 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 information

W3C XML XML Overview

W3C XML XML Overview Overview Jaroslav Porubän 2008 References Tutorials, http://www.w3schools.com Specifications, World Wide Web Consortium, http://www.w3.org David Hunter, et al.: Beginning, 4th Edition, Wrox, 2007, 1080

More information

Last week we saw how to use the DOM parser to read an XML document. The DOM parser can also be used to create and modify nodes.

Last week we saw how to use the DOM parser to read an XML document. The DOM parser can also be used to create and modify nodes. Distributed Software Development XML Schema Chris Brooks Department of Computer Science University of San Francisco 7-2: Modifying XML programmatically Last week we saw how to use the DOM parser to read

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

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

Document Parser Interfaces. Tasks of a Parser. 3. XML Processor APIs. Document Parser Interfaces. ESIS Example: Input document

Document Parser Interfaces. Tasks of a Parser. 3. XML Processor APIs. Document Parser Interfaces. ESIS Example: Input document 3. XML Processor APIs How applications can manipulate structured documents? An overview of document parser interfaces 3.1 SAX: an event-based interface 3.2 DOM: an object-based interface Document Parser

More information

XML for Java Developers G Session 2 - Sub-Topic 1 Beginning XML. Dr. Jean-Claude Franchitti

XML for Java Developers G Session 2 - Sub-Topic 1 Beginning XML. Dr. Jean-Claude Franchitti XML for Java Developers G22.3033-002 Session 2 - Sub-Topic 1 Beginning XML Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical Sciences Objectives

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

Well-formed XML Documents

Well-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 information

Comp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward

Comp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward Comp 336/436 - Markup Languages Fall Semester 2018 - 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 information

2009 Martin v. Löwis. Data-centric XML. XML Syntax

2009 Martin v. Löwis. Data-centric XML. XML Syntax Data-centric XML XML Syntax 2 What Is XML? Extensible Markup Language Derived from SGML (Standard Generalized Markup Language) Two goals: large-scale electronic publishing exchange of wide variety of data

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

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

Solution Sheet 5 XML Data Models and XQuery

Solution Sheet 5 XML Data Models and XQuery The Systems Group at ETH Zurich Big Data Fall Semester 2012 Prof. Dr. Donald Kossmann Prof. Dr. Nesime Tatbul Assistants: Martin Kaufmann Besmira Nushi 07.12.2012 Solution Sheet 5 XML Data Models and XQuery

More information

Web Computing. Revision Notes

Web Computing. Revision Notes Web Computing Revision Notes Exam Format The format of the exam is standard: Answer TWO OUT OF THREE questions Candidates should answer ONLY TWO questions The time allowed is TWO hours Notes: You will

More information

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

All About <xml> CS193D, 2/22/06 CS193D Handout 17 Winter 2005/2006 February 21, 2006 XML See also: Chapter 24 (709-728) All About CS193D, 2/22/06 XML is A markup language, but not really a language General purpose Cross-platform

More information

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

markup language carry data define your own tags self-descriptive W3C Recommendation XML intro What is XML? XML stands for EXtensible Markup Language XML is a markup language much like HTML XML was designed to carry data, not to display data XML tags are not predefined. You must define

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

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) Basics of XML: What is XML? XML (Extensible Markup Language) XML stands for Extensible Markup Language XML was designed to carry data, not to display data XML tags are not predefined. You must define your

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

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

XML 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 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

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

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

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

Introduction to Database Systems CSE 414

Introduction 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 information

XML stands for Extensible Markup Language and is a text-based markup language derived from Standard Generalized Markup Language (SGML).

XML stands for Extensible Markup Language and is a text-based markup language derived from Standard Generalized Markup Language (SGML). About the Tutorial XML stands for Extensible Markup Language and is a text-based markup language derived from Standard Generalized Markup Language (SGML). This tutorial will teach you the basics of XML.

More information

Big Data Fall Data Models

Big Data Fall Data Models Ghislain Fourny Big Data Fall 2018 11. Data Models pinkyone / 123RF Stock Photo CSV (Comma separated values) This is syntax ID,Last name,first name,theory, 1,Einstein,Albert,"General, Special Relativity"

More information

Markup Languages. Lecture 4. XML Schema

Markup Languages. Lecture 4. XML Schema Markup Languages Lecture 4. XML Schema Introduction to XML Schema XML Schema is an XML-based alternative to DTD. An XML schema describes the structure of an XML document. The XML Schema language is also

More information