XML. Part II DTD (cont.) and XML Schema
|
|
- Barrie Freeman
- 5 years ago
- Views:
Transcription
1 XML Part II DTD (cont.) and XML Schema
2 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 The associated element s name The list of declares attributes Each attribute in list consists of 3 parts The attribute name The attribute type The attribute value declaration
3 Example 1 <!ATTLIST contacts source CDATA #IMPLIED> ATTLIST keyword Associated element List of declared attributes Attribute name Attribute type Attribute value
4 Attribute naming rules are similar to element naming rule Duplicate attribute names are not allow in attribute list Attribute types (next page)
5
6 ID, IDREF, IDREFS ID s value must follow the rules for XML names The value of ID must be unique with in the entire XML document Only one ID is allowed per element The attribute value declaration for ID must be #IMPLIED, #REQUIRED For the value of IDREF, the value must match the value of some ID within the XML document
7 ENTITY and ENTITIES References to unparsed entities Unparsed entities refers to reference to an external file that processor connot parse, e.g. image file ENTITY or ENTITIES must refer to an ENTITY that has been declared somewhere in the DTD Value of ENTITY must follow the rules for XML name
8 NMTOKEN and NMTOKENS Used to refer to a concept or single word Value can be any word as long as it follow XML naming rules ENUMERATED Allow ability to specify a list of allowable values Each value must be a valid XML name <!ATTLIST phone kind (Home Work Cell Fax) #IMPLIED>
9 Attribute Value Declarations Within each attribute declaration, how the value will appear in the document must be specified as one of the following: Has a default value Has a fixed value Is required Is implied ( is optional)
10 Default value Specifying default value is just include the value in after the attribute type <!ATTLIST phone kind (Home Work Cell Fax) "Home"> Fixed values Use the #FIXED keyword followed by fixed value <!ATTLIST contacts version CDATA #FIXED "1.0"> Required value Used to specify that the attribute must be included with in XML document <!ATTLIST phone kind (Home Work Cell Fax) #REQUIRED>
11 Implied values In most case the attribute declared won t be required <!ATTLIST knows contacts IDREFS #IMPLIED>
12 Declaring multiple attribute for an element <!ATTLIST contacts version CDATA #FIXED 1.0 source CDATA #IMPLIED> OR <!ATTLIST contacts version CDATA #FIXED 1.0 > <!ATTLIST contacts source CDATA #IMPLIED>
13 Entities Refer to character reference Refer to sections of replacement text, etc. Refer to external file 4 kinds of entities: Built-in entities Character entities General entities Parameter entities
14 Built-in entities Escape characters: & < > &apos " Character entities Use for characters that are difficult to type or for non-ascii characters &#yyy; &#xhhh;
15 General entities Unlike built-in and character entities, general entities must be declared with in DTD There are 2 ways to declare general entities Internal entity declaration External entity declaration <!ENTITY source-text "Beginning' of List"> Keyword Entity name Value
16 References to general entities Reference to general entities Start with & Immediately follow the & is general entity s name End with semi-colon &general-reference;
17 Parameter entities Quite similar to general entities Unlike general entities, parameter entities can be used within DTD only Reference to parameter entities use % instead of & <!ENTITY % DefaultPhoneKind ""Home""> <!ATTLIST phone kind (Home Work Cell Fax) %DefaultPhoneKind;>
18 DTD Limitation DTD syntax and XML syntax are different Poor support for XML namespaces Poor data typing Limited content model description
19 XML Schemas A schema is any type of model document that defines the structure of something XML Schema refers to the specific W3C XML Schema technology XML Schema technology use for describing the structure of XML document XML Schema definitions = XSDs
20 Benefits of XML Schemas Using basic XML Fully support the Namespace Recommendation Enable validating text element based on built-in and user-defined data-types Enable concept such as object inheritance Creation of complex and reusable content model is easy
21 <?xml version="1.0"?> <schema xmlns=" xmlns:target=" targetnamespace=" elementformdefault="qualified"> <element name="name"> <complextype> <sequence> <element name="first" type="string"/> <element name="middle" type="string"/> <element name="last" type="string"/> </sequence> <attribute name="title" type="string"/> </complextype> </element> </schema>
22 <?xml version="1.0"?> <name xmlns=" xmlns:xsi=" xsi:schemalocation=" name5.xsd" title="mr."> <first>john</first> <middle>fitzgerald Johansen</middle> <last>doe</last> </name>
23 <schema> declaration Root element of XML Schema Default namespace and version attribute can be declared in this element <schema xmlns=" or <xs:schema xmlns:xs=" or <xsd:schema xmlns:xsd="
24 Target namespace Use for referring to declarations within the XML Schema <schema xmlns=" targetnamespace=" xmlns:target=" or <xs:schema xmlns:xs=" targetnamespace=" xmlns="
25 Element and Attribute Qualification The element or attribute is qualify if there is an associates to it <n:name xmlns:n=" <n:first>john</n:first> <n:middle>fitzgerald</n:middle> <n:last>doe</n:last> </n:name> <n:name xmlns:n=" <first>john</first> <middle>fitzgerald</middle> <last>doe</last> </n:name>
26 Within <schema>, the attributes use to modify the default specifying how elements should be qualified: elementformdefault attributeformdefault Default value of both attributes are unqualified <element> declarations <element name="name of the element" type="global type" ref="global element declaration" form="qualified or unqualified" minoccurs="non negative number" maxoccurs="non negative number or unbounded " default="default value" fixed="fixed value">
27 2 types of elements Local,Global Local Type Example <element name="name"> <complextype> <sequence> <element name="first" type="string"/> <element name="middle" type="string"/> <element name="last" type="string"/> </sequence> <attribute name="title" type="string"/> </complextype> </element>
28 Local Type Example <element name= name > <simpletype> <restriction base= string > <enumeration value= Home /> <enumeration value= Work /> <enumeration value= Cell /> <enumeration value= Fax /> </restriction> </simpletype> </element>
29 Global Type Examples <schema xmlns= xmlns:target= targetnamespace= elementformdefault= qualified > <complextype name= NameType > <sequence> <element name= first type= string /> <element name= middle type= string /> <element name= last type= string /> </sequence> <attribute name= title type= string /> </complextype> <element name= name type= target:nametype /> </schema>
30 Global Type Examples <xs:schema xmlns:xs= xmlns= targetnamespace= elementformdefault= qualified > <xs:complextype name= NameType > <xs:sequence> <xs:element name= first type= xs:string /> <xs:element name= middle type= xs:string /> <xs:element name= last type= xs:string /> </xs:sequence> <xs:attribute name= title type= xs:string /> </xs:complextype> <xs:element name= name type= NameType /> </xs:schema>
31 <?xml version= 1.0?> <schema xmlns= xmlns:target= targetnamespace= elementformdefault= qualified > <element name= first type= string /> <element name= middle type= string /> <element name= last type= string /> <complextype name= NameType > <sequence> <element ref= target:first /> <element ref= target:middle /> <element ref= target:last /> </sequence> <attribute name= title type= string /> </complextype> <element name= name type= target:nametype /> </schema>
32 Cardinality Represent number of occurrences of specific element within content model minoccurs and maxoccurs are attributes that used to modify an element s cardinality <element name= first type= string minoccurs= 2 maxoccurs= 2 /> <element ref= target:first maxoccurs= 10 /> <element name= location minoccurs= 0 maxoccurs= unbounded />
33 Default and Fixed values Default values <element name= last type= string default= Doe /> In XML document <last></last>or<last/> equivalent to <last>doe</last>
34 fixed values <element name= ver type= string fixed= 1.0 /> In XML document <ver></ver> or <ver/> or <ver>1.0</ver> are legal <ver></ver> or <ver/> are equivalent to <ver>1.0</ver> <ver>2.0</ver> is not legal
35 Element wildcards <any minoccurs= non negative number maxoccurs= non negative number or unbounded namespace= allowable namespaces processcontents= lax or skip or strict > Parameter of namespace attribute
36 <complextype name= NameType > <sequence> <element ref= target:first /> <element ref= target:middle /> <element ref= target:last /> <!-- allow any element from any namespace --> <any namespace= ##any processcontents= lax minoccurs= 0 maxoccurs= unbounded /> </sequence> <attribute name= title type= string /> </complextype>
37 <complextype> Declarations <complextype mixed= true or false name= Name of complextype > Local <complextype> definitions are never named, they are called anonymous complex types Global <complextype> definitions are always named mixed attribute allows the creation of element that include both text and element within content model
38 <element name= description > <complextype mixed= true > <choice minoccurs= 0 maxoccurs= unbounded > <element name= em type= string /> <element name= strong type= string /> <element name= br type= string /> </choice> </complextype> </element> XML document example <description>jeff is a developer & author for Beginning XML <em>4th edition</em> 2006 Wiley Publishing.<br/>Jeff <strong>loves</strong>xml! </description>
39 Empty content model <element name= knows > <complextype> </complextype> </element> <element name= knows > <complextype/> </element> <knows/> or <knows></knows>
40 <complextype> definitions can contain <attribute> declaration <element name= knows > <complextype> <attribute name= contacts type= IDREFS /> </complextype> </element>
41 <group> Declarations XML Schemas allow defining reusable groups of elements <group name= name of global group>
42 <?xml version= 1.0?> <schema xmlns= xmlns:target= targetnamespace= elementformdefault= qualified > <group name= NameGroup > <sequence> <element name= first type= string minoccurs= 1 maxoccurs= unbounded /> <element name= middle type= string minoccurs= 0 maxoccurs= 1 /> <element name= last type= string /> </sequence> </group> <complextype name= NameType > <group ref= target:namegroup /> <attribute name= title type= string /> </complextype> <element name= name type= target:nametype /> </schema>
43 Content Models In XML Schemas, an element s content model can be specified using the following: A <sequence> declaration A <choice> declaration A reference to a global <group> declaration An <all> declaration Each of the above declarations may contain: Inner content models Element declarations Element wildcards
44 <sequence> Declarations The attributes minoccurs and maxoccurs are allowed minoccurs and maxoccurs used to specified how many time this sequence of elements occurs <sequence minoccurs= non negative number maxoccurs= non negative number or unbounded >
45 Example <sequence> <element name= first type= string minoccurs= 1 maxoccurs= unbounded /> <element name= middle type= string minoccurs= 0 maxoccurs= 1 /> <element name= last type= string /> </sequence> <first>john</first> <middle>fitzgerald Johansen</middle> <last>doe</last> <last>doe</last> <middle>fitzgerald</middle> <first>john</first>
46 <choice> Declarations minoccurs and maxoccurs are allowed for modification of cardinality of <choice> Multiple child declarations are declared within <choice> but only one declaration may be used <choice minoccurs= non negative number maxoccurs= non negative number or unbounded > <choice> <element name= first type= string minoccurs= 1 maxoccurs= unbounded /> <element name= middle type= string minoccurs= 0 maxoccurs= 1 /> <element name= last type= string /> </choice>
47 <group> reference Allows reference to global element groups within content model <group ref= global group definition minoccurs= non negative number maxoccurs= non negative number or unbounded > <group name= NameGroup > <sequence> <element name= first type= string minoccurs= 1 maxoccurs= unbounded /> <element name= middle type= string minoccurs= 0 maxoccurs= 1 /> <element name= last type= string /> </sequence> </group> <element name= name > <complextype> <group ref= target:namegroup /> <attribute name= title type= string /> </complextype> </element>
48 <all> Declarations Allow the elements in content model to appear in any order There are several rules for using <all> The <all> declaration must be the only content model that appear as a child of a <complextype> The <all> declaration is not permitted to contain <sequence>, <choice>, or <group> declarations The <all> declaration s children may appear once each
49 Example <element name= name > <complextype> <all> <element name= first type= string /> <element name= middle type= string /> <element name= last type= string /> </all> <attribute name= title type= string /> </complextype> </element>
50 <first>john</first> <middle>fitzgerald</middle> <last>doe</last> Or <first>john</first> <last>doe</last> <middle>fitzgerald</middle>
51 <attribute> Declarations Attribute declarations are similar to element declarations There are 2 primary method for declaring attributes Local type Global type Unlike element declarations, attribute declarations are restricted to simple type
52 <attribute> declaration format <attribute name= name of the attribute type= global type ref= global attribute declaration form= qualified or unqualified use= optional or prohibited or required default= default value fixed= fixed value >
53 Creating a local type <attribute name= title > <simpletype> <!-- type information --> </simpletype> </element>
54 Creating a global type <schema xmlns= xmlns:contacts= targetnamespace= elementformdefault= qualified > <simpletype name= KindType > <!-- type information --> </simpletype> <element name= phone > <complextype> <!-- content model information --> <attribute name= kind type= contacts:kindtype /> </complextype> </element> </schema>
55 <schema xmlns= xmlns:contacts= targetnamespace= elementformdefault= qualified > <attribute name= test type= string /> <element name= phone > <complextype> <!-- content model information --> <attribute ref= contacts:test /> </complextype> </element> </schema>
56 Attribute use Use to specify that an attribute is required or optional or prohibited Default and fixed Allow declaring default and fixed value Example <attribute name= kind type= contacts:kindtype default= Home /> <attribute name= version type= string fixed= 1.0 />
57 <attributegroup> Declarations Define reusable groups of attributes <attributegroup name= ContactAttributes > <attribute name= version type= string fixed= 1.0 /> <attribute name= source type= string /> </attributegroup> <element name= contacts > <complextype> <sequence> <element name= contact minoccurs= 0 maxoccurs= unbounded > <complextype> <sequence> <element name= name type= contacts:nametype /> <element name= location type= contacts:locationtype /> </sequence> </complextype> </element> </sequence> <attributegroup ref= contacts:contactattributes /> </complextype> </element>
58
59
60 <element name= latitude type= float /> <element name= longitude type= float /> <attributegroup name= ContactAttributes > <attribute name= version type= decimal fixed= 1.0 /> <attribute name= source type= string /> </attributegroup>
61 <simpletype> Declaration User-defined datatypes Every <simpletype> definition is derived from another datatype <simpletype> definitions are often called derived types There are 3 primary derived types: Restriction types List types Union types
62 <restriction> Declaration <attribute name= kind > <simpletype> <restriction base= string > <enumeration value= Home /> <enumeration value= Work /> <enumeration value= Cell /> <enumeration value= Fax /> </restriction> </simpletype> </attribute>
63 <list> Declaration <simpletype name= ContactTagsType > <restriction base= string > <enumeration value= author /> <enumeration value= xml /> <enumeration value= poetry /> <enumeration value= consultant /> <enumeration value= CGI /> <enumeration value= semantics /> <enumeration value= animals /> </restriction> </simpletype> <simpletype name= ContactTagsListType > <list itemtype= contacts:contacttagstype /> </simpletype>
64 <union> Declarations <simpletype name= UnknownString > <restriction base= string > <enumeration value= Unknown /> </restriction> </simpletype> <simpletype name= UnknownOrFloatType > <union membertypes= float contacts:unknownstring /> </simpletype>
65 <element name= latitude type= contacts:unknownstringorfloattype /> <element name= longitude type= contacts:unknownstringorfloattype /> <latitude> </latitude> <longitude>unknown</longitude> <latitude>unknown</latitude> <longitude> Unknown</longitude>
XML Schema. Mario Alviano A.Y. 2017/2018. University of Calabria, Italy 1 / 28
1 / 28 XML Schema Mario Alviano University of Calabria, Italy A.Y. 2017/2018 Outline 2 / 28 1 Introduction 2 Elements 3 Simple and complex types 4 Attributes 5 Groups and built-in 6 Import of other schemes
More informationXML Schema Element and Attribute Reference
E XML Schema Element and Attribute Reference all This appendix provides a full listing of all elements within the XML Schema Structures Recommendation (found at http://www.w3.org/tr/xmlschema-1/). The
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 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 informationAppendix 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 informationJava 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 informationXML. Part I XML Document and DTD
XML Part I XML Document and DTD What is XML? XML = Extensible Markup Language A Mark up language Designed based on SGML with less complexity Goal: data interchange over the web What is XML? เป ด น อย HTML
More information2006 Martin v. Löwis. Data-centric XML. XML Schema (Part 1)
Data-centric XML XML Schema (Part 1) Schema and DTD Disadvantages of DTD: separate, non-xml syntax very limited constraints on data types (just ID, IDREF, ) no support for sets (i.e. each element type
More informationEMERGING 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 informationTutorial 2: Validating Documents with DTDs
1. One way to create a valid document is to design a document type definition, or DTD, for the document. 2. As shown in the accompanying figure, the external subset would define some basic rules for all
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 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 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 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 informationIntroducing our First Schema
1 di 11 21/05/2006 10.24 Published on XML.com http://www.xml.com/pub/a/2000/11/29/schemas/part1.html See this if you're having trouble printing code examples Using W3C XML By Eric van der Vlist October
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 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 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 Outline History Comparison with DTD Syntax Definitions and declaration Simple types Namespace Complex
More informationXEP-0009: Jabber-RPC
XEP-0009: Jabber-RPC DJ Adams mailto:dj.adams@pobox.com xmpp:dj@gnu.mine.nu 2011-11-10 Version 2.2 Status Type Short Name Final Standards Track jabber-rpc This specification defines an XMPP protocol extension
More informationModule 3. XML Schema
Module 3 XML Schema 1 Recapitulation (Module 2) XML as inheriting from the Web history SGML, HTML, XHTML, XML XML key concepts Documents, elements, attributes, text Order, nested structure, textual information
More informationSolution 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 informationSemantic 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 informationSistemi ICT per il Business Networking
Corso di Laurea Specialistica Ingegneria Gestionale Sistemi ICT per il Business Networking XML Schema Docente: Vito Morreale (vito.morreale@eng.it) 1 Motivation People are dissatisfied with DTDs It's a
More informationXEP-0104: HTTP Scheme for URL Data
XEP-0104: HTTP Scheme for URL Data Matthew Miller mailto:linuxwolf@outer-planes.net xmpp:linuxwolf@outer-planes.net 2004-01-20 Version 0.3 Status Type Short Name Deferred Standards Track N/A This document
More informationModelling 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 informationChapter 6: RELAX NG. Chapter 6 Objectives. blocks of RELAX NG schemas. higher-level components for reuse, as well
Chapter 6: RELAX NG 1 Chapter 6 Objectives RELAX NG syntaxes RELAX NG patterns, which are the building blocks of RELAX NG schemas Composing and combining patterns into higher-level components for reuse,
More informationTC57 Use of XML Schema. Scott Neumann. October 3, 2005
TC57 Use of XML Schema Scott Neumann October 3, 2005 Introduction The purpose of this presentation is to respond to an action item from the last WG14 meeting regarding the use of XML Schema by WG14 and
More informationXEP-0298: Delivering Conference Information to Jingle Participants (Coin)
XEP-0298: Delivering Conference Information to Jingle Participants (Coin) Emil Ivov mailto:emcho@jitsi.org xmpp:emcho@jit.si Enrico Marocco mailto:enrico.marocco@telecomitalia.it xmpp:enrico@tilab.com
More informationXML (4) Extensible Markup Language
XML (4) Extensible Markup Language Acknowledgements and copyrights: these slides are a result of combination of notes and slides with contributions from: Michael Kiffer, Arthur Bernstein, Philip Lewis,
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 informationXEP-0033: Extended Stanza Addressing
XEP-0033: Extended Stanza Addressing Joe Hildebrand mailto:jhildebr@cisco.com xmpp:hildjj@jabber.org Peter Saint-Andre mailto:xsf@stpeter.im xmpp:peter@jabber.org http://stpeter.im/ 2017-01-11 Version
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 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 informationThe 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 informationXML 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 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 informationChapter 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 informationBig 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 informationFROM XML SCHEMA TO OBJECT-RELATIONAL DATABASE AN XML SCHEMA-DRIVEN MAPPING ALGORITHM
FROM XML SCHEMA TO OBJECT-RELATIONAL DATABASE AN XML SCHEMA-DRIVEN MAPPING ALGORITHM Irena Mlynkova, Jaroslav Pokorny Charles University, Faculty of Mathematics and Physics, Department of Software Engineering
More informationSDMX self-learning package No. 6 Student book. XML Based Technologies Used in SDMX
No. 6 Student book XML Based Technologies Used in SDMX Produced by Eurostat, Directorate B: Statistical Methodologies and Tools Unit B-5: Statistical Information Technologies Last update of content May
More informationDescribing Document Types: The Schema Languages of XML Part 2
Describing Document Types: The Schema Languages of XML Part 2 John Cowan 1 Copyright Copyright 2005 John Cowan Licensed under the GNU General Public License ABSOLUTELY NO WARRANTIES; USE AT YOUR OWN RISK
More informationHR-XML Schema Extension Recommendation, 2003 February 26
HR-XML Schema Extension Recommendation, 2003 February 26 This version: HRXMLExtension.doc Previous version: HRXMLExtension-1_0.doc Editor: Paul Kiel, HR-XML, paul@hr-xml.org Authors: Paul Kiel, HR-XML,
More informationCS561 Spring Mixed Content
Mixed Content DTDs define mixed content by mixing #PCDATA into the content model DTDs always require mixed content to use the form (#PCDATA a b )* the occurrence of elements in mixed content cannot be
More informationInside Information Platform Implementation Guide
ID CODE: PIP Implementation Guide ver. 1.0 DATE: 15/12/2015 DOCUMENT TYPE: APPLICATION: Implementation Guide G.M.E. S.p.A. Inside Information Platform Implementation Guide The information contained in
More informationNaming & Design Requirements (NDR)
The Standards Based Integration Company Systems Integration Specialists Company, Inc. Naming & Design Requirements (NDR) CIM University San Francisco October 11, 2010 Margaret Goodrich, Manager, Systems
More informationWeb Services Resource Metadata 1.0 (WS-ResourceMetadataDescriptor)
1 2 3 4 Web Services Resource Metadata 1.0 (WS-ResourceMetadataDescriptor) Committee Specification 01, November 9, 2006 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 Document identifier:
More informationLoop Qualification Table of Contents
Loop Qualification Table of Contents 10. LOOP QUALIFICATION... 2 10.1 BUSINESS DESCRIPTION... 2 10.1.1 Query Type - Response Summary... 2 10.2 BUSINESS MODEL BUSINESS MODEL... 3 10.3 LOOP QUALIFICATION
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 informationXEP-0171: Language Translation
XEP-0171: Language Translation Boyd Fletcher mailto:boyd.fletcher@us.army.mil Keith Lirette mailto:keith.lirette@tridsys.com Daniel LaPrade mailto:dlaprade@echostorm.net Brian Raymond mailto:braymond@echostorm.net
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 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 informationGrid Computing. What is XML. Tags, elements, and attributes. Valid and well formed XML. Grid Computing Fall 2006 Paul A.
Grid Computing XML Fall 2006 Including material from Amy Apon, James McCartney, Arkansas U. What is XML XML stands for extensible markup language It is a hierarchical data description language It is a
More 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 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 informationXML and Content Management
XML and Content Management Lecture 3: Modelling XML Documents: XML Schema Maciej Ogrodniczuk, Patryk Czarnik MIMUW, Oct 18, 2010 Lecture 3: XML Schema XML and Content Management 1 DTD example (recall)
More informationAltova XMLSpy 2007 Tutorial
Tutorial All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or mechanical, including photocopying, recording, taping, or information storage
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 informationExtensible 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 informationBig Data Exercises. Fall 2018 Week 8 ETH Zurich. XML validation
Big Data Exercises Fall 2018 Week 8 ETH Zurich XML validation Reading: (optional, but useful) XML in a Nutshell, Elliotte Rusty Harold, W. Scott Means, 3rd edition, 2005: Online via ETH Library 1. XML
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 informationextensible 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 informationSo far, we've discussed the use of XML in creating web services. How does this work? What other things can we do with it?
XML Page 1 XML and web services Monday, March 14, 2011 2:50 PM So far, we've discussed the use of XML in creating web services. How does this work? What other things can we do with it? XML Page 2 Where
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 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 informationETSI STANDARD Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 9: Using XML schema with TTCN-3
ES 201 873-9 V4.7.1 (2016-07) STANDARD Methods for Testing and Specification (MTS); The Testing and Test Control Notation version 3; Part 9: Using XML schema with TTCN-3 2 ES 201 873-9 V4.7.1 (2016-07)
More informationXML (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 informationDOM Interface subset 1/ 2
DOM Interface subset 1/ 2 Document attributes documentelement methods createelement, createtextnode, Node attributes nodename, nodevalue, nodetype, parentnode, childnodes, firstchild, lastchild, previoussibling,
More informationXML Reference: Siebel Enterprise Application Integration. Siebel Innovation Pack 2014 November 2014
XML Reference: Siebel Enterprise Application Integration Siebel Innovation November 2014 Copyright 2005, 2014 Oracle and/or its affiliates. All rights reserved. This software and related documentation
More informationCreation of the adaptive graphic Web interfaces for input and editing data for the heterogeneous information systems on the bases of XML technology
Creation of the adaptive graphic Web interfaces for input and editing data for the heterogeneous information systems on the bases of XML technology A. Mukhitova and O. Zhizhimov Novosibirsk State University,
More information7.1 Introduction. 7.1 Introduction (continued) - Problem with using SGML: - SGML is a meta-markup language
7.1 Introduction - SGML is a meta-markup language - Developed in the early 1980s; ISO std. In 1986 - HTML was developed using SGML in the early 1990s - specifically for Web documents - Two problems with
More informationRestricting complextypes that have mixed content
Restricting complextypes that have mixed content Roger L. Costello October 2012 complextype with mixed content (no attributes) Here is a complextype with mixed content:
More informationXEP-0337: Event Logging over XMPP
XEP-0337: Event Logging over XMPP Peter Waher mailto:peterwaher@hotmail.com xmpp:peter.waher@jabber.org http://www.linkedin.com/in/peterwaher 2017-09-11 Version 0.3 Status Type Short Name Deferred Standards
More informationBig Data for Engineers Spring Data Models
Ghislain Fourny Big Data for Engineers Spring 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
More informationComplex type. This subset is enough to model the logical structure of all kinds of non-xml data.
DFDL Introduction For Beginners Lesson 2: DFDL language basics We have seen in lesson 1 how DFDL is not an entirely new language. Its foundation is XML Schema 1.0. Although XML Schema was created as a
More informationSCA Model using XSD. Status: in progress. Version Date Author(s) Comments. v1.0 06/06/07 Damien Fournier, Philippe Merle (INRIA) Initial version
SCA Model using XSD This document lists the corrections on the XSD files (from OSOA: http://www.osoa.org/xmlns/sca/1.0/) required to enable the validation of the XSD model and to reflect properly the SCA
More informationBig 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 informationJeff Offutt. SWE 642 Software Engineering for the World Wide Web
XML Advanced Topics Jeff Offutt http://www.cs.gmu.edu/~offutt/ SWE 642 Software Engineering for the World Wide Web sources: Professional Java Server Programming, Patzer, Wrox, 2 nd edition, Ch 5, 6 Programming
More informationMANAGING INFORMATION (CSCU9T4) LECTURE 2: XML STRUCTURE
MANAGING INFORMATION (CSCU9T4) LECTURE 2: XML STRUCTURE Gabriela Ochoa http://www.cs.stir.ac.uk/~goc/ OUTLINE XML Elements vs. Attributes Well-formed vs. Valid XML documents Document Type Definitions (DTDs)
More informationW3C XML Schemas For Publishing
W3C XML Schemas For Publishing 208 5.8.xml: Getting Started
More informationWho s Afraid of XML Schema?
Who s Afraid of XML Schema? Neil Graham IBM Canada Ltd. Page Objectives Review some of the scariest aspects of XML Schema Focus on broad concepts Heavy use of examples Prove that the basics of XML Schema
More informationAltova XMLSpy 2013 Tutorial
Tutorial All rights reserved. No parts of this work may be reproduced in any form or by any means - graphic, electronic, or mechanical, including photocopying, recording, taping, or information storage
More informationLast 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 informationXML Schema Profile Definition
XML Schema Profile Definition Authors: Nicholas Routledge, Andrew Goodchild, Linda Bird, DSTC Email: andrewg@dstc.edu.au, bird@dstc.edu.au This document contains the following topics: Topic Page Introduction
More informationXML Schema for Job Definition Format. Graham Mann Internet Printing Group, Adobe Systems Inc
XML Schema for Job Definition Format Graham Mann Internet Printing Group, Adobe Systems Inc gmann@adobe.com Agenda! Why use XML schema! Summary of XML schema capability! Limitations of XML schema! JDF
More informationXML 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 informationNo Trade Secrets. Microsoft does not claim any trade secret rights in this documentation.
[MS-OXSHRMSG]: Intellectual Property Rights Notice for Open Specifications Documentation Technical Documentation. Microsoft publishes Open Specifications documentation for protocols, file formats, languages,
More informationXML 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<account_number> A-101 </account_number># <branch_name> Downtown </branch_name># <balance> 500 </balance>#
Basic structure: # # A-101 # Downtown # 500 # # # # # # # Johnson#
More informationUBL Naming and Design Rules Checklist
UBL Naming And Design Rules Checklist Page 1 2004-09-03 UBL Naming and Design Rules Checklist This document is a subset of the UBL Naming and Design Rules Master Document. It reflects the rules used to
More informationETSI TS V9.2.0 ( )
TS 132 445 V9.2.0 (2012-03) Technical Specification Universal Mobile Telecommunications System (UMTS); LTE; Telecommunication management; Trace Management Integration Reference Point (IRP): extensible
More information* * DFDL Introduction For Beginners. Lesson 2: DFDL Language Basics. DFDL and XML Schema
DFDL Introduction For Beginners Lesson 2: DFDL Language Basics Version Author Date Change 1 S Hanson 2011-01-24 Created 2 S Hanson 2011-01-24 Updated 3 S Hanson 2011-03-30 Improved 4 S Hanson 2012-02-29
More informationUNIT I. A protocol is a precise set of rules defining how components communicate, the format of addresses, how data is split into packets
UNIT I Web Essentials: Clients, Servers, and Communication. The Internet- Basic Internet Protocols -The World Wide Web-HTTP request message-response message- Web Clients Web Servers-Case Study. Markup
More informationNotes. 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 informationST.96 - ANNEX I XML DESIGN RULES AND CONVENTIONS. Version 2.0
page: 3.96.i.1 ST.96 - ANNEX I XML DESIGN RULES AND CONVENTIONS Version 2.0 Revision approved by the XML4IP Task Force of the Committee on WIPO Standards (CWS) on May 28, 2015 Table of Contents ST.96 -
More information[MS-OXSHRMSG]: Sharing Message Attachment Schema. Intellectual Property Rights Notice for Open Specifications Documentation
[MS-OXSHRMSG]: Intellectual Property Rights Notice for Open Specifications Documentation Technical Documentation. Microsoft publishes Open Specifications documentation for protocols, file formats, languages,
More informationextensible 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 informationETSI TS V8.1.0 ( )
TS 132 645 V8.1.0 (2012-01) Technical Specification Universal Mobile Telecommunications System (UMTS); LTE; Telecommunication management; Configuration Management (CM); UTRAN network resources Integration
More informationCONVERTING CONCEPTUAL MODEL XUML TO XML SCHEMA
CONVERTING CONCEPTUAL MODEL XUML TO XML SCHEMA XUEMIN ZHANG School of Computer and Information Science, Hubei Engineering University, Xiaogan 432000, Hubei, China ABSTRACT As XML has become the standard
More informationFraming how values are extracted from the data stream. Includes properties for alignment, length, and delimiters.
DFDL Introduction For Beginners Lesson 3: DFDL properties In lesson 2 we learned that in the DFDL language, XML Schema conveys the basic structure of the data format being modeled, and DFDL properties
More informationIntroduction 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