Outline. XML vs. HTML and Well Formed vs. Valid. XML Overview. CSC309 Tutorial --XML 4. Edward Xia
|
|
- Corey Booker
- 6 years ago
- Views:
Transcription
1 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 1 CSC309 Tutorial --XML 2 XML Overview XML vs. HTML and Well Formed vs. Valid EXtensible Markup Language (XML) XML is a simplified version of SGML (Structured Generalized Markup Language) and designed for ease of implementation. XML fundamentally separates content from presentation; HTML specifies the presentation. HTML explicitly defines a set of legal tags as well as the grammar. XML is used to describe the content of the document. XML allows any tags or grammar to be used. All XML elements must have a closing tag. XML tags are case sensitive. All elements must be properly nested. All XML documents must have a root tag. Attribute values must always be quoted. W3C home page on XML XML 1.0 specification An XML document is well-formed if it follows basic syntax rules. Every tag must have an end tag. <elementone> </elementone> <elementtwo /> All tags are completely nested (tag order cannot be mixed). An XML document is valid if its structure matches a DTD. A valid XML document must be well-formed. A well-formed document may not be valid. CSC309 Tutorial --XML 3 CSC309 Tutorial --XML 4
2 XML Components XML Prolog Prolog Defines the xml version, entity definitions, and DOCTYPE Components of the document Elements and attributes CDATA (character data) Entities Processing instructions Comments (the same as html) CSC309 Tutorial --XML 5 XML files always start with a prolog <?xml version= 1.0 encoding= UTF-8 standalone= no?> The version of XML is required The encoding identifies character set (default UTF-8) The value standalone identifies if an external document is reference for DTD or entity definition The prolog can contain entities and DTD definitions Prolog example <?xml version= 1.0 encoding= UTF-8 standalone= yes?> <DOCTYPE authors [ <!ELEMENT authors (name)*> <!ELEMENT name (firstname, lastname)> <!ELEMENT firstname (#PCDATA)> <!ELEMENT lastname (#PCDATA)> CSC309 Tutorial --XML 6 XML DOCTYPE overview XML DOCTYPE Internal DTD Document Type Declarations Specifies the location of the DTD defining the syntax and structure of elements in the document Common forms: <!DOCTYPE root [DTD <!DOCTYPE root SYSTEM URL> <!DOCTYPE root PUBLIC FPI-identifier URL> The root identifies the starting element (root element) of the document. The DTD can be external to the XML document, referenced by a SYSTEM or PUBLIC URL. SYSTEM URL refers to a private DTD located on the local file system or HTTP server PUBLIC URL refers to a DTD intended for public use. CSC309 Tutorial --XML 7 (1) <!DOCTYPE root [DTD <?xml version="1.0" encoding="utf-8" standalone="yes"?> <!DOCTYPE person [ <!ELEMENT person (name)+> CSC309 Tutorial --XML 8
3 XML DOCTYPE External - SYSTEM (2) <!DOCTYPE root SYSTEM URL> <?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE person SYSTEM "person.dtd"> or using absolute URL <?xml version="1.0" encoding="utf-8"?> <!-- File: person.dtd --> <!ELEMENT person (name)+> <!DOCTYPE person SYSTEM " CSC309 Tutorial --XML 9 XML DOCTYPE External - PUBLIC (3) <!DOCTYPE root PUBLIC FPI-identifier URL> <?xml version="1.0" encoding="utf-8" standalone="no?> <!DOCTYPE person PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN " /xhtml1-transitional.dtd"> <html> <head>public dtd</head> <body> This is an example of public dtd. </body> </html> CSC309 Tutorial --XML 10 XML DOCTYPE External & Internal (4) <!DOCTYPE root SYSTEM URL [DTD] > <?xml version="1.0" encoding="utf-8" standalone="no?> <!DOCTYPE person SYSTEM "person.dtd [<!ATTLIST person sex (male female) male >] > Element Declarations <!ELEMENT name content> content: EMPTY, ANY, (#PCDATA), mixed, elements (1) EMPTY: The element is declared to be an empty one - no content allowed. <!ELEMENT empty_element EMPTY> e.g., <empty_element /> (2) ANY: The element can have any element or character data. <!ELEMENT any_element ANY> e.g., <any_element> This is a line of characters. <other_element>... </other_element> </any_element> CSC309 Tutorial --XML 11 CSC309 Tutorial --XML 12
4 Element Declarations (cont d) (3) (#PCDATA): The content can be only character data. e.g., <first> John </first> (4) mixed: The content may contain character data and/or child elements. <!ELEMENT mix_element (#PCDATA first last)*> e.g., <mix_element> My first name is and my last name is <last>smith </last> </mix_element> CSC309 Tutorial --XML 13 Element Declarations (cont d) (5) child elements: The content can only contain the child elements (no character data). The sequence, alternative, and cardinality can be expressed using parentheses, commas(,), pipes( ) and modifiers. <!ELEMENT a (x,y,z)>: element a must have an element x, followed by y, followed by z. <!ELEMENT b (x y z)>: element b must have an element x, or y, or z. <!ELEMENT c (((x,y)+ z)*)> modifier: * stands for zero or more. + stands for one or more.? stands for zero or one. CSC309 Tutorial --XML 14 Attribute List Declarations Define which attributes may be associated with a particular element. An attribute can have a name, a type, whether optional, required or fixed, and possibly a default. <!ATTLIST element_name attribute_name attribute_type default_declaration> attribute_type string type: CDATA Enumerated type: (value1 value2 value3) Tokenized type: ID, IDREF, IDREFS, NMTOKEN, NMITOKENS, ENTITY, ENTITIES default_declaration #REQUIRED, #IMPLIED, #FIXED, value Attribute List Declarations attribute_type String type: any unparsed data <!ATTLIST student sex CDATA #IMPLIED> Enumerated type: The type explicitly states the set of possible values an attribute may take. <!ATTLIST car color (red black blue white) #REQUIRED> ID: An ID type attribute must contain an value which is unique within the XML document. IDREF: An IDREF type attribute refers to the ID type attribute of an another element in the document. It is often used to create relationships between elements. CSC309 Tutorial --XML 15 CSC309 Tutorial --XML 16
5 Attribute List Declarations default_declaration #REQUIRED: Every element must have this attribute. <!ATTLIST person id ID #REQUIRED> #IMPLIED: The attribute is optional. <!ATTLIST person salary CDATA #IMPLIED> #FIXED: The attribute must always have this value. <!ATTLIST person language CDATA #FIXED "EN"> <!-- The document is not valid if attribute language contains a value different from "EN". If element doesn't contain the attribute, the default value "EN" will be used. --> value: The attribute may or may not appear in the element. If not, using this value. <!ATTLIST person contract (true false) 'false'> Entity Declarations Internal General Entities <?xml version="1.0" encoding="utf-8" standalone="yes"?> <!DOCTYPE person [ <!ELEMENT person ((name)+, university)> <!ELEMENT university (#PCDATA)> <!ENTITY ut "university of toronto"> <university>&ut;</university> CSC309 Tutorial --XML 17 CSC309 Tutorial --XML 18 Entity Declarations External General Entities Entity Declarations Parameter Entities <?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE person [ <!ELEMENT person ((name)+, university)> <!ELEMENT university (#PCDATA)> <!ENTITY UfT SYSTEM "ut.xml"> &UfT; File: ut.xml <university>university of Toronto</university> CSC309 Tutorial --XML 19 Parameter Entities can only be used within the DTD. Declaration: <!ENTITY % name "replacement text"> Usage: %name; e.g., <!ENTITY % week_attr "Mon Tue Wed Thu Fri Sat Sun"> <!ELEMENT day EMPTY> <!ATTLIST day today %week_attr; "Mon"> <!ENTITY anyday %week_attr;> CSC309 Tutorial --XML 20
6 Entity Declarations Predefined Entities CDATA < produces the left angle bracket < > produces the right angle bracket > & produces the ampersand & ' produces a single quote character ' " produces a double quote character " Character data in a CDATA section is not processed by the XML parser. <![CDATA [ content ] e.g., <![CDATA[ if (this->getvalue() < 3 && value[1]!=3 ) cout << "error message" ] If we don't use CDATA, we have to write as following: if (this->getvalue() < 3 && value[1]!= 3) cout << "error message" CSC309 Tutorial --XML 21 CSC309 Tutorial --XML 22 Stylesheet PI XML Namespaces (1) Associate CSS (Cascading Style Sheets): <?xml version="1.0" encoding="utf-8 standalone="no"?> <?xml-stylesheet type="text/css" href="book.css"?> <!DOCTYPE bookdatabase SYSTEM "book.dtd"> <bookdatabase>... </bookdatabase> (2) Associate XSL (extensible Stylesheet Language) <?xml version="1.0" encoding="utf-8" standalone="no"?> <?xml-stylesheet type="text/xsl" href="book.xsl"?> <!DOCTYPE bookdatabase SYSTEM "book.dtd"> <bookdatabase>... </bookdatabase> Required to avoid name collisions when many are defining their own XML applications. An XML namespaces is a collection of names, identified by a URI reference, which are used in XML documents as element types and attributed names. A namespace is declared using a family of reserved attributes. Such an attribute s name must either be xmlns or have xmlns: as a prefix. xmlna sts a default namespace xmlns: is used to declare a namespace which will be used in the document. CSC309 Tutorial --XML 23 CSC309 Tutorial --XML 24
7 XML Namespaces (cont ) A Complete Example DTD Qualified Names Namespace prefix: local part The namespace prefix maps to namespace URI. <html: html xmlna:html= > <html:head> <html:title>title</html:title> </html:head> </html:html> A variable in that element and all nested elements. A default can be set for a tag and all its nested tags. <html xmlns= > <head> <title>title</html:title> </head> </html> <?xml version="1.0" encoding="utf-8"?> <!-- file: book.dtd --> <!ELEMENT bookdatabase (book+)> <!ENTITY % CH "(chapter, description)"> <!ELEMENT book (author+, image*, content+, newchapters*)> <!ATTLIST book bookid ID #REQUIRED> <!ELEMENT author (#PCDATA)> <!ELEMENT image (#PCDATA)> <!ELEMENT content %CH;> <!ELEMENT newchapters %CH;> <!ATTLIST newchapters added (true false) "false"> <!ELEMENT chapter (#PCDATA)> <!ATTLIST chapter number CDATA #REQUIRED> <!ELEMENT description (section*, summary?)> <!ELEMENT section (#PCDATA)> <!ELEMENT summary (#PCDATA)> <!ENTITY EH "Elliotte Rusty Harold"> <!ENTITY IF "Ian Foster"> <!ENTITY CK "Carl Kesselman"> CSC309 Tutorial --XML 25 CSC309 Tutorial --XML 26 A Complete Example XML A Complete Example XML (cont d) <?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE bookdatabase SYSTEM "book.dtd"> <bookdatabase> <book bookid="isbn-0-13-xxx"> <author>&eh;</author> <content> <chapter number="1">xml Structure, Syntax</chapter> <description> <section>xml Fundamentals</section> </description> </content> <content> <chapter number="2">document Type Definitions</chapter> <description> <section>element Declarations</section> <section>attributes Declarations</section> <summary>summary of the chapter 2</summary> </description> </content> </book> CSC309 Tutorial --XML 27 <book bookid="isbn xxx"> <author>&if;</author> <author>&ck;</author> <image>grid architecture</image> <content> <chapter number="1">grids in Context</chapter> <description /> </content> <newchapters> <chapter number="20">network structure</chapter> <description> <section>the Future( )</section> <summary>summary of the new chapter</summary> </description> </newchapters> </book> </bookdatabase> How to validate: java -cp /u/csc309h/lib/xerces.jar:/u/csc309h/lib/ Validator -v book.xml CSC309 Tutorial --XML 28
Outline. XML DOCTYPE External - SYSTEM. XML DOCTYPE Internal DTD &6&7XWRULDO ;0/ (GZDUG;LD
&6&7XWRULDO ;0/ (GZDUG;LD Outline XML DOCTYPE Element Declarations Attribute List Declarations Entity Declarations CDATA Stylesheet PI A Complete Example -DQXDU\ 1 CSC309 Tutorial --XML 2 XML DOCTYPE Internal
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 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 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 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 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 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 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 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 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 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 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 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. 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 informationOutline. Link HTML With Style Sheets &6&7XWRULDO &66 ;+70/ (GZDUG;LD
&6&7XWRULDO &66 ;+70/ (GZDUG;LD Outline CSS Link XHTML With Style Sheets, Class/ID selectors, Pseudo-class/element, Color values, Length units, Text, Font, Lists, Padding/border/margin, Floating/clearing,
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. 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 informationFundamentals of Web Programming a
Fundamentals of Web Programming a Introduction to XML Teodor Rus rus@cs.uiowa.edu The University of Iowa, Department of Computer Science a Copyright 2009 Teodor Rus. These slides have been developed by
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 informationCLASS DISCUSSION AND NOTES
CLASS DISCUSSION AND NOTES April 2011 Mon Tue Wed Thu Fri 4 5 6 7 8 AH-8 (individual) Chap. 12 XML 11 12 13 14 15 AH-9 (team) Quiz #2 I. GETTING STARTED COURSE OVERVIEW II. DATABASE DESIGN & IMPLEMENTATION
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 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 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 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 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 informationFundamentals of Web Programming a
Fundamentals of Web Programming a Introduction to XML Teodor Rus rus@cs.uiowa.edu The University of Iowa, Department of Computer Science a Copyright 2009 Teodor Rus. These slides have been developed by
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 informationWeb Services Part I. XML Web Services. Instructor: Dr. Wei Ding Fall 2009
Web Services Part I Instructor: Dr. Wei Ding Fall 2009 CS 437/637 Database-Backed Web Sites and Web Services 1 XML Web Services XML Web Services = Web Services A Web service is a different kind of Web
More informationXML: and related technologies
XML" XML: and related technologies extensible Markup Language (XML) Is a meta-language that describes the content of the document (self-describing data) XML does not specify the tag set or grammar of the
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 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 informationMethods and Tools for Management Information Systems
Methods and Tools for Management Information Systems Lecture 2 18. Oktober 2010 Slide 1 XML Syntax A simple yet complete example: Alan Turing No binary data but completely built from
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 informationSDPL : XML Basics 2. SDPL : XML Basics 1. SDPL : XML Basics 4. SDPL : XML Basics 3. SDPL : XML Basics 5
2 Basics of XML and XML documents 2.1 XML and XML documents Survivor's Guide to XML, or XML for Computer Scientists / Dummies 2.1 XML and XML documents 2.2 Basics of XML DTDs 2.3 XML Namespaces XML 1.0
More 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 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 informationSolutions. a. Yes b. No c. Cannot be determined without the DTD. d. Schema. 9. Explain the term extensible. 10. What is an attribute?
Chapter 7: Information Representation Method XML Solutions Summative Assessment Multiple-Choice Questions (MCQs) 1. XML was developed to overcome the limitations of the markup language. a. EDI b. SGML
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 informationModule 2 (III): XHTML
INTERNET & WEB APPLICATION DEVELOPMENT SWE 444 Fall Semester 2008-2009 (081) Module 2 (III): XHTML Dr. El-Sayed El-Alfy Computer Science Department King Fahd University of Petroleum and Minerals alfy@kfupm.edu.sa
More informationINTERNET PROGRAMMING XML
INTERNET PROGRAMMING XML Software Engineering Branch / 4 th Class Computer Engineering Department University of Technology OUTLINES XML Basic XML Advanced 2 HTML & CSS & JAVASCRIPT & XML DOCUMENTS HTML
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 informationmarkup 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 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 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 informationIntroduction to Semistructured Data and XML. Overview. How the Web is Today. Based on slides by Dan Suciu University of Washington
Introduction to Semistructured Data and XML Based on slides by Dan Suciu University of Washington CS330 Lecture April 8, 2003 1 Overview From HTML to XML DTDs Querying XML: XPath Transforming XML: XSLT
More informationXML. 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 informationElectronic Commerce Architecture Project LAB ONE: Introduction to XML
Electronic Commerce Architecture Project LAB ONE: Introduction to XML An XML document has two required parts. The first is the definition of what data should be in the document. The second is the document
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 informationHTML and XML. XML stands for extensible Markup Language
HTML and XML XML stands for extensible Markup Language HTML is used to mark up text so it can be displayed to users HTML describes both structure (e.g. , , ) and appearance (e.g. , ,
More informationXML (Extensible Markup Language
XML (Extensible Markup Language XML is a markup language. XML stands for extensible Markup Language. The XML standard was created by W3C to provide an easy to use and standardized way to store self describing
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 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 informationIntroduction to XML. National University of Computer and Emerging Sciences, Lahore. Shafiq Ur Rahman. Center for Research in Urdu Language Processing
Introduction to XML Shafiq Ur Rahman Center for Research in Urdu Language Processing National University of Computer and Emerging Sciences, Lahore XMLXML DTDDTD Related Related Standards Overview What
More informationThe main Topics in this lecture are:
Lecture 15: Working with Extensible Markup Language (XML) The main Topics in this lecture are: - Brief introduction to XML - Some advantages of XML - XML Structure: elements, attributes, entities - What
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 informationComp 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 informationIntroduction to XML. When talking about XML, here are some terms that would be helpful:
Introduction to XML XML stands for the extensible Markup Language. It is a new markup language, developed by the W3C (World Wide Web Consortium), mainly to overcome limitations in HTML. HTML is an immensely
More informationCSC309 Tutorial CSS & XHTML
CSC309 Tutorial CSS & XHTML Lei Jiang January 27, 2003 1 CSS CSC309 Tutorial --CSS & XHTML 2 Sampel XML Document
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 informationChapter 13: Introduction to XML. Informatics Practices Class XII. By- Deepak Bhinde
Chapter 13: Introduction to XML Informatics Practices Class XII By- Deepak Bhinde PGT (Comp.Sc.) What is XML? extensible Markup Language (XML) is a text-based mark-up language which allows to create application
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 informationInformation Systems. XML Essentials. Nikolaj Popov
Information Systems XML Essentials Nikolaj Popov Research Institute for Symbolic Computation Johannes Kepler University of Linz, Austria popov@risc.uni-linz.ac.at Outline Introduction Basic Syntax Well-Formed
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 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 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 informationWeb Programming Paper Solution (Chapter wise)
What is valid XML document? Design an XML document for address book If in XML document All tags are properly closed All tags are properly nested They have a single root element XML document forms XML tree
More informationDatabases and Internet Applications
Databases and Internet Applications Part 1 Chapter 7.1-7.5 Comp 521 Files and Databases Fall 2016 1 Uniform Resource Identifiers Uniform naming schema to identify resources on the Internet A resource can
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 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 informationIntroduction to Database Systems CSE 414
Introduction to Database Systems CSE 414 Lecture 14-15: XML CSE 414 - Spring 2013 1 Announcements Homework 4 solution will be posted tomorrow Midterm: Monday in class Open books, no notes beyond one hand-written
More informationIMS Learning Design XML Binding
IMS Learning Design XML Binding Version 1.0 Final Specification Copyright 2003 by IMS Global Learning Consortium, Inc. All Rights Reserved. The IMS Logo is a trademark of IMS Global Learning Consortium,
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 informationOverview. Structured Data. The Structure of Data. Semi-Structured Data Introduction to XML Querying XML Documents. CMPUT 391: XML and Querying XML
Database Management Systems Winter 2004 CMPUT 391: XML and Querying XML Lecture 12 Overview Semi-Structured Data Introduction to XML Querying XML Documents Dr. Osmar R. Zaïane University of Alberta Chapter
More informationCPT374 Tutorial-Laboratory Sheet Two
CPT374 Tutorial-Laboratory Sheet Two Objectives: Understanding XML DTDs Tutorial Exercises Exercise 1 - An introduction to XML DTD Go to http://www.zvon.org/xxl/dtdtutorial/general/contents.html and read
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 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 informationConstructing a Document Type Definition (DTD) for XML
Constructing a Document Type Definition (DTD) for XML Abstract John W. Shipman 2013-08-24 12:16 Describes the Document Type Definition notation for describing the schema of an SGML or XML document type.
More informationAdditional Readings on XPath/XQuery Main source on XML, but hard to read:
Introduction to Database Systems CSE 444 Lecture 10 XML XML (4.6, 4.7) Syntax Semistructured data DTDs XML Outline April 21, 2008 1 2 Further Readings on XML Additional Readings on XPath/XQuery Main source
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 information11. EXTENSIBLE MARKUP LANGUAGE (XML)
11. EXTENSIBLE MARKUP LANGUAGE (XML) Introduction Extensible Markup Language is a Meta language that describes the contents of the document. So these tags can be called as self-describing data tags. XML
More informationCountryData Technologies for Data Exchange. Introduction to XML
CountryData Technologies for Data Exchange Introduction to XML What is XML? EXtensible Markup Language Format is similar to HTML, but XML deals with data structures, while HTML is about presentation Open
More informationXML Technologies XML, DTD
XML Technologies XML, DTD Basic Structural Components of XML Documents (1/2)
More information