SDPL : XML Basics 2. SDPL : XML Basics 1. SDPL : XML Basics 4. SDPL : XML Basics 3. SDPL : XML Basics 5
|
|
- Dorthy Griffin
- 6 years ago
- Views:
Transcription
1 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 Extensible Markup Language, 3C Recommendation, February 1998 not an official standard, but a stable industry standard 2 nd Ed 2000, 3 rd Ed 2004, 4 th Ed 2006, 5 th Ed Nov 2008» editorial revisions, not new versions of XML 1.0 a simplified subset of SGML, Standard Generalized Markup Language, ISO 8879:1987 what is said later about valid XML documents applies to SGML documents, too SDPL : XML Basics 1 SDPL : XML Basics 2 hat is XML? Semantics of XML Markup Extensible Markup Language is not a markup language! does not fix a tag set nor its semantics (unlike markup languages, e.g. HTML) XML documents have no inherent (processing or presentation) semantics even though many think that XML is semantic or self- describing; See next SDPL : XML Basics 3 Meaning of this XML fragment? The computer cannot know it either! Implementing the semantics is the topic of this course SDPL : XML Basics 4 hat is XML (2)? How does it look? XML is a (A) way to use markup to represent information (B) metalanguage» supports definition of specific markup languages through XML DTDs or Schemas» E.g. XHTML a reformulation of HTML using XML (C) Often XML XML + XML technology that is, processing models and languages we re studying (and many others...) SDPL : XML Basics 5 <?xml version= 1.0 encoding= iso ?> <invoice num= 1234 > <client clnum= > 01 > <name>pekka Kilpeläinen</name> < >kilpelai@cs.uku.fi</ > </client> <item price= 60 unit= EUR > XML Handbook</item> <item price= 350 unit= FIM > XSLT Programmer s Ref</item> </invoice> SDPL : XML Basics 6 1
2 Essential Features of XML Overview of XML essentials many details skipped» some to be discussed in exercises or with other topics when the need arises Learn to consult original sources (specifications, documentation etc) for details!» The XML specification is easy to browse SDPL : XML Basics 7 XML Document Characters XML documents are made of ISO (32-bit) characters; ; in practice of 16-bit Unicode chars (cf. Java) Three aspects or characters (see next): representation by bytes/octets numeric code points visual presentation SDPL : XML Basics 8 External Aspects of Characters XML Encoding of Structure 1 Documents are stored/transmitted as a sequence of bytes (or octets). An encoding determines how characters are represented by bytes. UTF-8 ( 7-bit ASCII) is the XML default encoding encoding="iso " ~> 256 estern European chars as single bytes A font (collection of character images called glyphs) ) determines the visual presentation of characters XML is, essentially, just a textual encoding scheme of labelled, ordered and attributed trees,, in which internal nodes are elements labelled by type names leaves are text nodes labelled by string values, or empty element nodes the left-to-right order of children of a node matters element nodes may carry attributes (= name-string-value pairs) SDPL : XML Basics 9 SDPL : XML Basics 10 XML Encoding of Structure 2 XML Encoding of Structure: Example 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 must be unique: attr k attr h when k h text nodes written as their string value SDPL : XML Basics 11 Hello S E A=1 <S> <> Hello </> <E A= 1 /> <>world! </> </S> SDPL : XML Basics 12 world! 2
3 XML: Logical Document Structure Elements indicated by matching (case-sensitive!) sensitive!) tags <ElementTypeName> </ElementTypeName> can contain text and/or subelements can be empty: <elem-type></elem-type> or <elem-type/> (e.g. <br/> in XHTML) unique root element document a single tree Logical document structure (2) Attributes name-value pairs attached to elements metadata, usually not treated as content in start-tag tag after the element type name Also: <div class="preface" date='990126'> <!-- comments outside other markup --> <?PI value of processing instruction PI?> SDPL : XML Basics 13 SDPL : XML Basics 14 CDATA Sections Two levels of correctness (1) CDATA Sections to include XML markup characters as textual content <![CDATA[ Here we can include for example code fragments: <example>if (Count < 5 && Count > 0) </example> ]]> SDPL : XML Basics 15 ell-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) SDPL : XML Basics 16 XML docs and valid XML docs An XML Processor (Parser) DTD-valid documents Schema-valid documents XML documents = well-formed XML documents Reads XML documents and reports their contents to an application relieves the application from details of markup XML Recommendation specifies, partly, the behaviour of XML processors: 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 SDPL : XML Basics 17 SDPL : XML Basics 18 3
4 2. 2 Basics of XML DTDs Markup Declarations A Document Type Declaration provides a grammar (document type definition, DTD) ) for a class of documents [Defined in XML Rec ec] Syntax (in the prolog of a document instance): <!DOCTYPE rootelemtype SYSTEM "ex.dtd" <!-- "external subset" in file ex.dtd --> [ <!-- "internal subset" may come here --> ]> DTD = union of the external and internal subset (could be empty); internal has higher precedence can override entity and attribute declarations (see next) SDPL : XML Basics 19 DTD consists of markup declarations element type declarations» similar to productions of ECFGs attribute-list declarations» for declared element types entity declarations» short-hand hand notations and physical storage units notation declarations» information about external (binary) objects SDPL : XML Basics 20 How do Declarations Look Like? Element type declarations <!ELEMENT invoice (client, item+)> <!ATTLIST invoice num NMTOKEN #REQUIRED> <!ELEMENT client (name, ?)> <!ATTLIST client num NMTOKEN #IMPLIED> <!ELEMENT name (#PCDATA)> <!ELEMENT (#PCDATA)> <!ELEMENT item (#PCDATA)> <!ATTLIST item price NMTOKEN #REQUIRED unit (FIM EUR) EUR > string of name characters; (Letter [0-9]. - _ : ) + SDPL : XML Basics 21 The general form is <!ELEMENT elemtype ( E )> where E is a content model (regular expr.); ECFG production elemtype E ) Content model operators: E F : alternation E, F: concatenation E? : optional E* : zero or more E+ : one or more (E) : grouping No priorities: : either (A,B) C or A,(B C), but no A,B C SDPL : XML Basics 22 Attribute-List Declarations Mixed, Empty and Arbitrary Content Can declare attributes for elements: Name, data type and possible default value: <!ATTLIST FIG id ID #IMPLIED descr CDATA #REQUIRED class (a b c) "a"> Semantics mainly up to the application parser checks that ID attributes are unique and that targets of IDREF and IDREFS attributes exist SDPL : XML Basics 23 Mixed content: <!ELEMENT P (#PCDATA I IMG)*> may contain text (#PCDATA)) and elements Empty content: <!ELEMENT IMG EMPTY> Arbitrary content: <!ELEMENT HTML ANY> (= <!ELEMENT HTML (#PCDATA choice-of-all-declared-element-types)*> )*>) SDPL : XML Basics 24 4
5 Entities (1) Named storage units or XML fragments (~ macros in some languages) character entities:» << and< all expand to < (treated as data, not as start-of-markup)» other predefined entities: & > &apos apos; "e; for & > ' " general entities are shorthand notations: <!ENTITY CS School of Computing"> SDPL : XML Basics 25 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> SDPL : XML Basics 26 Unparsed Entities An Alternative ay For connecting external binary objects to XML documents; (XML processor handles only text) <!NOTATION TIFF "bin/gimp"> <!ENTITY fig123 SYSTEM "figs/f123.tif" NDATA TIFF> <!ATTLIST IMG file ENTITY #REQUIRED> Usage: <IMG file="fig123"/> parser provides notation and address to the application an SGML legacy technique(?) SDPL : XML Basics 27 I have rarely used unparsed entities or notations Easier "HTML-style" linking: <IMG type="tiff" file="figs/fig123"/> the link indicates the format and the address directly maintenance of numerous entities might be easier with (indirect references through) explicit declarations SDPL : XML Basics 28 Parameter Entities to parameterize and modularize DTDs: <!ENTITY % tabledtd SYSTEM "dtds/tab.dtd"> %tabledtd; <!-- include sub-dtd --> <!ENTITY % stattr "ready (yes no) 'no'"> <!ATTLIST CHAP %stattr; > <!ATTLIST SECT %stattr; > (Parameter entities inside a markup declaration allowed only in external DTD subset) Speculations about XML Parsing Parsing involves two things: 1. Pulling the entities together, and checking the well- formedness 2. Building a parse tree for the input (a'la DOM), or otherwise informing the application about document content and structure (e.g. a'la SAX) Task 2 is simple ( simplicity of XML markup; see next) Checking well-formedness is straightforward; Implementing validation is a bit more challenging SDPL : XML Basics 29 SDPL : XML Basics 30 5
6 Building an XML Parse Tree Simplified XML Tree Building Algorithm Hello S E <S> <> Hello </><E> <E> </E> <> world! </></S> </S> world! C new Document(); // current node Uses DOM like Scan document text until at end: tree operations case of scanned text: "<Type>": N new ElementNode(Type); C.addChildNode(N); C N; ": C.addChildNode(new TextNode(Txt)); Type>": C C.parentNode(); "Txt": "</ </Type return C; SDPL : XML Basics 31 SDPL : XML Basics 32 Sketching XML validation Treat the document as a tree d Document is valid w.r.t.. a grammar (DTD/Schema) G iff d is a syntax tree over G Check that the root is labelled by the start symbol of G For each element node n of the tree, check that its» attributes match with those of the element type» content matches the content model of its type: If n is of type A and its children of type B 1,, B n, check that the grammar has a production A E for which Sketching the validation (2) How to check condition (1; matching of children with a content model)? by an automaton built from content model E Example: <!ELEMENT A ((B C)+, D)> B 1 B n L(E) (1) SDPL : XML Basics 33 SDPL : XML Basics XML Namespaces Documents often comprise parts processed by different applications (and/or defined in different schemas) for example, in XSLT scripts: <xsl:template match="doc/title"> <H1> HTML <xsl:apply-templates /> elements </H1> </xsl:template> XSLT elements/ How to manage multiple sets of names? instructions XML Namespaces (2/5) Solution: XML Namespaces, 3C Rec. Jan 99, for separating possibly overlapping vocabularies (sets of element type and attribute names) within a single document 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 SDPL : XML Basics 35 SDPL : XML Basics 36 6
7 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 identifying URI has to be unique, but it does not have to be an existing 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:stylesheet> SDPL : XML Basics 37 SDPL : XML Basics 38 XML Namespaces briefly (5/5) Built on top of basic XML By overloading attribute syntax (xmlns:foo=... =...) does not affect validation» namespace attributes must be declared for DTD-validity» all element type names must be declared (with their prefixes!) > Other schema languages (XML Schema, Relax NG) better for validating documents with Namespaces Processing languages allow to declare NS prefixes; see next SDPL : XML Basics 39 Example: Namespaces in XSLT XML: <test xmlns:foo=" <foo:a>aaa</ </foo:a> <foo:b>bbb</ </foo:b> </test> <xsl:transform version="1.0" xmlns:xsl=" xmlns:bar=" <xsl:template match="/"> <xsl:apply-templates select="//bar:*" /> </xsl:template> </xsl:transform> SDPL : XML Basics 40 Example: Namespaces in XQuery ns-test.xml : <test xmlns:foo=" <foo:a>aaa</ </foo:a> <foo:b>bbb</ </foo:b> </test> xquery version "1.0"; declare namespace zap = " doc("ns-test.xml")//zap:* For NS support in XML APIs, see next SDPL : XML Basics 41 7
Introduction & Motivation. Course Outline. Arrangements. Presentation vs Structure. Markup and Markup Language. Main Topic: Two XML Query Models
Querying XML Documents and Data CBU Summer School 13.8. - 20.8.2007 (2 ECTS) Prof. Pekka Kilpeläinen inen Univ of Kuopio, Dept of Computer Science Pekka.Kilpelainen@cs.uku.fi Introduction & Motivation
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. 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 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 informationAuthor: Irena Holubová Lecturer: Martin Svoboda
NPRG036 XML Technologies Lecture 1 Introduction, XML, DTD 19. 2. 2018 Author: Irena Holubová Lecturer: Martin Svoboda http://www.ksi.mff.cuni.cz/~svoboda/courses/172-nprg036/ Lecture Outline Introduction
More informationIntroduction to XML. XML: basic elements
Introduction to XML XML: basic elements XML Trying to wrap your brain around XML is sort of like trying to put an octopus in a bottle. Every time you think you have it under control, a new tentacle shows
More informationData Presentation and Markup Languages
Data Presentation and Markup Languages MIE456 Tutorial Acknowledgements Some contents of this presentation are borrowed from a tutorial given at VLDB 2000, Cairo, Agypte (www.vldb.org) by D. Florescu &.
More 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 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 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 informationDocument 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 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 informationThe 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.. 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 informationIntroduction 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 information2006 Martin v. Löwis. Data-centric XML. Document Types
Data-centric XML Document Types Purpose 2006 Martin v. Löwis Document Type Definitions define a vocabulary set of allowed element names set of attributes per element name data type given for each attribute
More informationDelivery 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 informationIntroduction to XML Zdeněk Žabokrtský, Rudolf Rosa
NPFL092 Technology for Natural Language Processing Introduction to XML Zdeněk Žabokrtský, Rudolf Rosa November 28, 2018 Charles Univeristy in Prague Faculty of Mathematics and Physics Institute of Formal
More informationextensible Markup Language
extensible Markup Language XML is rapidly becoming a widespread method of creating, controlling and managing data on the Web. XML Orientation XML is a method for putting structured data in a text file.
More informationMarkup 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 informationXML 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 informationOverview. 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 informationWhat 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 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 informationXML 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 informationDelivery 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 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 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 informationM359 Block5 - Lecture12 Eng/ Waleed Omar
Documents and markup languages The term XML stands for extensible Markup Language. Used to label the different parts of documents. Labeling helps in: Displaying the documents in a formatted way Querying
More informationXML. COSC Dr. Ramon Lawrence. An attribute is a name-value pair declared inside an element. Comments. Page 3. COSC Dr.
COSC 304 Introduction to Database Systems XML Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca XML Extensible Markup Language (XML) is a markup language that allows for
More informationUsing UML To Define XML Document Types
Using UML To Define XML Document Types W. Eliot Kimber ISOGEN International, A DataChannel Company Created On: 10 Dec 1999 Last Revised: 14 Jan 2000 Defines a convention for the use of UML to define XML
More informationCSS, Cascading Style Sheets
CSS, Cascading Style Sheets HTML was intended to define the content of a document This is a heading This is a paragraph This is a table element Not how they look (aka style)
More information- 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 informationextensible 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 information2009 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 informationChapter 7: XML Namespaces
7. XML Namespaces 7-1 Chapter 7: XML Namespaces References: Tim Bray, Dave Hollander, Andrew Layman: Namespaces in XML. W3C Recommendation, World Wide Web Consortium, Jan 14, 1999. [http://www.w3.org/tr/1999/rec-xml-names-19990114],
More informationXML 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 informationStructured documents
Structured documents An overview of XML Structured documents Michael Houghton 15/11/2000 Unstructured documents Broadly speaking, text and multimedia document formats can be structured or unstructured.
More informationCOMP9321 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 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 informationIntroduction to XML (Extensible Markup Language)
Introduction to XML (Extensible Markup Language) 1 History and References XML is a meta-language, a simplified form of SGML (Standard Generalized Markup Language) XML was initiated in large parts by Jon
More 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 informationOracle Application Server 10g Oracle XML Developer s Kit Frequently Asked Questions September, 2005
Oracle Application Server 10g Oracle XML Developer s Kit Frequently Asked Questions September, 2005 This FAQ addresses frequently asked questions relating to the XML features of Oracle XML Developer's
More informationXML 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 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 informationCOMP9321 Web Application Engineering. Extensible Markup Language (XML)
COMP9321 Web Application Engineering Extensible Markup Language (XML) Dr. Basem Suleiman Service Oriented Computing Group, CSE, UNSW Australia Semester 1, 2016, Week 4 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid=2442
More informationW3C 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 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 informationSession 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 informationXML SCHEMA INFERENCE WITH XSLT
XML SCHEMA INFERENCE WITH XSLT By SCOTT MCCOLLUM BUNTIN A THESIS PRESENTED TO THE GRADUATE SCHOOL OF THE UNIVERSITY OF FLORIDA IN PARTIAL FULFILLMENT OF THE REQUIREMENTS FOR THE DEGREE OF MASTER OF SCIENCE
More informationXML. extensible Markup Language. Overview. Overview. Overview XML Components Document Type Definition (DTD) Attributes and Tags An XML schema
XML extensible Markup Language An introduction in XML and parsing XML Overview XML Components Document Type Definition (DTD) Attributes and Tags An XML schema 3011 Compiler Construction 2 Overview Overview
More informationCSI 3140 WWW Structures, Techniques and Standards. Markup Languages: XHTML 1.0
CSI 3140 WWW Structures, Techniques and Standards Markup Languages: XHTML 1.0 HTML Hello World! Document Type Declaration Document Instance Guy-Vincent Jourdan :: CSI 3140 :: based on Jeffrey C. Jackson
More informationXML 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 informationCSC Web Technologies, Spring Web Data Exchange Formats
CSC 342 - Web Technologies, Spring 2017 Web Data Exchange Formats Web Data Exchange Data exchange is the process of transforming structured data from one format to another to facilitate data sharing between
More informationPart 2: XML and Data Management Chapter 6: Overview of XML
Part 2: XML and Data Management Chapter 6: Overview of XML Prof. Dr. Stefan Böttcher 6. Overview of the XML standards: XML, DTD, XML Schema 7. Navigation in XML documents: XML axes, DOM, SAX, XPath, Tree
More informationA tutorial report for SENG Agent Based Software Engineering. Course Instructor: Dr. Behrouz H. Far. XML Tutorial.
A tutorial report for SENG 609.22 Agent Based Software Engineering Course Instructor: Dr. Behrouz H. Far XML Tutorial Yanan Zhang Department of Electrical and Computer Engineering University of Calgary
More informationIntroduction 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 informationComp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward
Comp 336/436 - Markup Languages Fall Semester 2017 - Week 4 Dr Nick Hayward XML - recap first version of XML became a W3C Recommendation in 1998 a useful format for data storage and exchange config files,
More informationXML: Managing with the Java Platform
In order to learn which questions have been answered correctly: 1. Print these pages. 2. Answer the questions. 3. Send this assessment with the answers via: a. FAX to (212) 967-3498. Or b. Mail the answers
More informationXML, DTD: Exercises. A7B36XML, AD7B36XML: XML Technologies. Practical Classes 1 and 2: 3. and
A7B36XML, AD7B36XML: XML Technologies Practical Classes 1 and 2: XML, DTD: Exercises 3. and 10. 3. 2017 Jiří Helmich helmich@ksi.mff.cuni.cz Martin Svoboda svoboda@ksi.mff.cuni.cz http://www.ksi.mff.cuni.cz/~svoboda/courses/2016-2-a7b36xml/
More informationXML. Presented by : Guerreiro João Thanh Truong Cong
XML Presented by : Guerreiro João Thanh Truong Cong XML : Definitions XML = Extensible Markup Language. Other Markup Language : HTML. XML HTML XML describes a Markup Language. XML is a Meta-Language. Users
More informationChapter 13 XML: Extensible Markup Language
Chapter 13 XML: Extensible Markup Language - Internet applications provide Web interfaces to databases (data sources) - Three-tier architecture Client V Application Programs Webserver V Database Server
More informationOutline. XML vs. HTML and Well Formed vs. Valid. XML Overview. CSC309 Tutorial --XML 4. Edward Xia
CSC309 Tutorial XML Edward Xia November 7, 2003 Outline XML Overview XML DOCTYPE Element Declarations Attribute List Declarations Entity Declarations CDATA Stylesheet PI XML Namespaces A Complete Example
More informationPART. Oracle and the XML Standards
PART I Oracle and the XML Standards CHAPTER 1 Introducing XML 4 Oracle Database 10g XML & SQL E xtensible Markup Language (XML) is a meta-markup language, meaning that the language, as specified by the
More information웹기술및응용. XML Basics 2018 년 2 학기. Instructor: Prof. Young-guk Ha Dept. of Computer Science & Engineering
웹기술및응용 XML Basics 2018 년 2 학기 Instructor: Prof. Young-guk Ha Dept. of Computer Science & Engineering 목차 q Introduction to XML q XML Document Structure and Basic Syntax 2 Introduction to XML XML (extensible
More informationQuestion Bank XML (Solved/Unsolved) Q.1 Fill in the Blanks: (1 Mark each)
Q.1 Fill in the Blanks: (1 Mark each) 1. With XML, you can create your own elements, also called tags. 2. The beginning or first element in XML is called the root (document) element. 3. Jon Bosak is known
More informationXML. 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 informationXML for Java Developers G Session 3 - Main Theme XML Information Modeling (Part I) Dr. Jean-Claude Franchitti
XML for Java Developers G22.3033-002 Session 3 - Main Theme XML Information Modeling (Part I) Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical
More informationXML for Java Developers G Session 3 - Main Theme XML Information Modeling (Part I) Dr. Jean-Claude Franchitti
XML for Java Developers G22.3033-002 Session 3 - Main Theme XML Information Modeling (Part I) Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical
More informationChapter 10: Understanding the Standards
Disclaimer: All words, pictures are adopted from Learning Web Design (3 rd eds.) by Jennifer Niederst Robbins, published by O Reilly 2007. Chapter 10: Understanding the Standards CSc2320 In this chapter
More information[MS-XML]: Microsoft Extensible Markup Language (XML) 1.0 Fourth Edition Standards Support Document
[MS-XML]: Microsoft Extensible Markup Language (XML) 1.0 Fourth Edition Standards Support Document Intellectual Property Rights Notice for Open Specifications Documentation Technical Documentation. Microsoft
More informationXML and Databases. Lecture 11 XSLT Stylesheets and Transforms. Sebastian Maneth NICTA and UNSW
XML and Databases Lecture 11 XSLT Stylesheets and Transforms Sebastian Maneth NICTA and UNSW CSE@UNSW -- Semester 1, 2010 Outline 1. extensible Stylesheet Language Transformations (XSLT) 2. Templates:
More informationWell-formed XML Documents
Well-formed XML Documents Asst. Prof. Dr. Kanda Runapongsa Saikaew (krunapon@kku.ac.th) Dept. of Computer Engineering Khon Kaen University 1 Agenda Types of XML documents Why Well-formed XML Documents
More informationChapter 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 informationXML 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 informationXML. XML Syntax. An example of XML:
XML Extensible Markup Language (XML) is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. Defined in the XML 1.0 Specification
More informationXML Applications. Prof. Andrea Omicini DEIS, Ingegneria Due Alma Mater Studiorum, Università di Bologna a Cesena
XML Applications Prof. Andrea Omicini DEIS, Ingegneria Due Alma Mater Studiorum, Università di Bologna a Cesena Outline XHTML XML Schema XSL & XSLT Other XML Applications 2 XHTML HTML vs. XML HTML Presentation
More informationSemistructured data, XML, DTDs
Semistructured data, XML, DTDs Introduction to Databases Manos Papagelis Thanks to Ryan Johnson, John Mylopoulos, Arnold Rosenbloom and Renee Miller for material in these slides Structured vs. unstructured
More informationXML. 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 informationData Exchange. Hyper-Text Markup Language. Contents: HTML Sample. HTML Motivation. Cascading Style Sheets (CSS) Problems w/html
Data Exchange Contents: Mariano Cilia / cilia@informatik.tu-darmstadt.de Origins (HTML) Schema DOM, SAX Semantic Data Exchange Integration Problems MIX Model 1 Hyper-Text Markup Language HTML Hypertext:
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 informationChapter 1: XML Syntax
1. XML Syntax 1-1 Chapter 1: XML Syntax References: Boc DuCharme: XML The Annotated Specification. Prentice Hall, 1999. Tim Bray, Jean Paoli, C.M. Sperberg-McQueen: Extensible Markup Language (XML) 1.0,
More informationChapter 1: XML Syntax
1. XML Syntax 1-1 Chapter 1: XML Syntax References: Boc DuCharme: XML The Annotated Specification. Prentice Hall, 1999. Tim Bray, Jean Paoli, C.M. Sperberg-McQueen: Extensible Markup Language (XML) 1.0,
More informationCOPYRIGHTED MATERIAL. Contents. Part I: Introduction 1. Chapter 1: What Is XML? 3. Chapter 2: Well-Formed XML 23. Acknowledgments
Acknowledgments Introduction ix xxvii Part I: Introduction 1 Chapter 1: What Is XML? 3 Of Data, Files, and Text 3 Binary Files 4 Text Files 5 A Brief History of Markup 6 So What Is XML? 7 What Does XML
More informationCOMP9321 Web Application Engineering
COMP9321 Web Application Engineering Semester 2, 2017 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 http://webapps.cse.unsw.edu.au/webcms2/course/index.php?cid= 2465 1
More informationXML. Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior
XML Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior XML INTRODUCTION 2 THE XML LANGUAGE XML: Extensible Markup Language Standard for the presentation and transmission of information.
More informationCS6501 IP Unit IV Page 1
CS6501 Internet Programming Unit IV Part - A 1. What is PHP? PHP - Hypertext Preprocessor -one of the most popular server-side scripting languages for creating dynamic Web pages. - an open-source technology
More informationIntro to XML. Borrowed, with author s permission, from:
Intro to XML Borrowed, with author s permission, from: http://business.unr.edu/faculty/ekedahl/is389/topic3a ndroidintroduction/is389androidbasics.aspx Part 1: XML Basics Why XML Here? You need to understand
More informationXML Introduction 1. XML Stands for EXtensible Mark-up Language (XML). 2. SGML Electronic Publishing challenges -1986 3. HTML Web Presentation challenges -1991 4. XML Data Representation challenges -1996
More informationTagSoup: A SAX parser in Java for nasty, ugly HTML. John Cowan
TagSoup: A SAX parser in Java for nasty, ugly HTML John Cowan (cowan@ccil.org) Copyright This presentation is: Copyright 2002 John Cowan Licensed under the GNU General Public License ABSOLUTELY WITHOUT
More informationXML and Databases. Outline XML. XML, typical usage scenario XML. 1. extensible Stylesheet Language X M L. Sebastian Maneth NICTA and UNSW
Outline XML and Databases 1. extensible Stylesheet Language Transformations (XSLT) 2. Templates (match pattern action) Lecture 11 XSLT Stylesheets and Transforms Sebastian Maneth NICTA and UNSW 3. Default
More informationCopyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 27-1
Slide 27-1 Chapter 27 XML: Extensible Markup Language Chapter Outline Introduction Structured, Semi structured, and Unstructured Data. XML Hierarchical (Tree) Data Model. XML Documents, DTD, and XML Schema.
More informationXML. extensible Markup Language. ... and its usefulness for linguists
XML extensible Markup Language... and its usefulness for linguists Thomas Mayer thomas.mayer@uni-konstanz.de Fachbereich Sprachwissenschaft, Universität Konstanz Seminar Computerlinguistik II (Miriam Butt)
More informationInformatique de Gestion 3 èmes Bachelier Groupes 230x
Catégorie Technique XML Basics XML Ludovic Kuty Informatique de Gestion 3 èmes Bachelier Groupes 230x Année Académique 2014 2015 21/10/14 07:53 Catégorie Technique XML Basics XML Ludovic Kuty Informatique
More informationInternet and Web Technologies. Sample Solutions 2013
Internet and Web Technologies Sample Solutions 2013 1. (a) stream paradigm connection-oriented one-to-one communication sequence of individual bytes arbitrary length transfer used by most applications
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 informationIntroduction to XML the Language of Web Services
Introduction to XML the Language of Web Services Tony Obermeit Senior Development Manager, Wed ADI Group Oracle Corporation Introduction to XML In this presentation, we will be discussing: 1) The origins
More informationXDS An Extensible Structure for Trustworthy Document Content Verification Simon Wiseman CTO Deep- Secure 3 rd June 2013
Assured and security Deep-Secure XDS An Extensible Structure for Trustworthy Document Content Verification Simon Wiseman CTO Deep- Secure 3 rd June 2013 This technical note describes the extensible Data
More informationIntroduction to XML. Large Scale Programming, 1DL410, autumn 2009 Cons T Åhs
Introduction to XML Large Scale Programming, 1DL410, autumn 2009 Cons T Åhs XML Input files, i.e., scene descriptions to our ray tracer are written in XML. What is XML? XML - extensible markup language
More informationCHAPTER 2 MARKUP LANGUAGES: XHTML 1.0
WEB TECHNOLOGIES A COMPUTER SCIENCE PERSPECTIVE CHAPTER 2 MARKUP LANGUAGES: XHTML 1.0 Modified by Ahmed Sallam Based on original slides by Jeffrey C. Jackson reserved. 0-13-185603-0 HTML HELLO WORLD! Document
More information