XML. Part I XML Document and DTD
|
|
- Caren Walton
- 5 years ago
- Views:
Transcription
1 XML Part I XML Document and DTD
2 What is XML? XML = Extensible Markup Language A Mark up language Designed based on SGML with less complexity Goal: data interchange over the web
3 What is XML? เป ด น อย HTML <html> <head><title>name</title></head> <body> <p>เป ด น อย</p> </body> </html> XML <name> <first>เป ด</first> <last>น อย</last> </name> Self-describing
4 XML is extensible Document Type Tags are freed to created Structures are freed to form Documents are created using Tags, structure and text XML Document that use to describe something is called document type The types of XML document created may vary based on their creator
5 Rules for elements Well-Formed XML Every start-tag must have a matching end-tag or be a self-closing tag Tag can t overlap; elements must be properly nested XML Documents can have only 1 root element Element names must obey XML naming conventions XML is case sensitive XML will keep whitespace in data
6 <p> </p Nested tag Some <strong> formatted <em> text </strong>, but </em> no grammar no good! <p> </p Some <strong> formatted <em> text </em> </strong> <em>, but </em> no grammar no good!
7 One root element <name>john</name> <name>jane</name> <names> <name>john</name> <name>jane</name> </names> <name></name>
8 XML Naming Convention Names can start with letters (including non-latin characters) or the dash (-) character, but not numbers or other punctuation characters After the first character, numbers, hyphens, and periods are allowed Names can t contain spaces Names can t contain the colon (:) character Names can t start with the letters xml, in uppercase, lowercase, or mixed There can t be a space after the opening < character
9 Example <first.name> <résumé> <xml-tag> <123> <fun=xml> <my tag> < this.tag>
10 Well-formed XML Attributes Attributes are simple name/value pair attached to the start-tag Attributes must have values even if it is an empty string Attribute s value must be in quote Attribute s naming must follow the same rule as naming element (tag) The elements cannot have attribute with the same name twice or more
11 Example <input checked> <input checked=true> <input checked= true > <input checked= checked= F > <input checked= true > <input checked= true > <input checked= tr e > <input checked= tr e > <input checked= >
12 Well-formed XML Comments <!--John lost his duck in a fire-->
13 Well-formed XML Empty Elements Refers to elements with no data Can be represented in 2 way <tag></tag> <tag /> or <tag/> but <tag/ > or <tag / > are incorrect
14 Well-formed XML In Windows system, giving an ext of.xml In other system, how to indentify? XML Declarations Used to identify document as XML document type Start with <? and end with?> Must include version attribute Attributes: encoding and standalone are optional The version, encoding and standalone must be in that order version should be 1.0 or 1.1 Must be right at the beginning of the file
15 Examples <?xml version= 1.0 encoding= UTF-16 standalone= yes?> XML specification version 1.0 Character encoding of the document Specify that the document -Exists entirely on its own or -Depends on external DTD
16 Reserved characters < > & are reserved in XML To use reserved characters as data Use escaping characters & for &, < for <, > for >, ' for, " for &#yyy; yyy is the unicode number of the character in decimal (&#x yyy for number in hex) Use CDATA <![CDATA[6 is < 7 & 7 > 6]]>
17 XML Namespaces In real world application, there need to combine elements from various document type into one XML document With 2 or more document types, this may occurs: Elements/attributes with the same name but with different meaning XML namespace exists to solve the above problems XML namespace helps differentiate elements and attributes of different XML document types from each other when combining them together or processing multiple document simultaneously
18 Example 1 <?xml version= 1.0?> <person> <name> <title>sir</title> <first>john</first> <middle>fitzgerald Johansen</middle> <last>doe</last> </name> <position>vice President of Marketing</position> <resume> <html> <head><title>resume of John Doe</title></head> <body> <h1>john Doe</h1> <p>john s a great guy, you know?</p> </body> </html> </resume > </person>
19 Using prefixes The best way to solve this problem (same tag but different meaning) is to make tag to have a completely distinct name Adding prefixes to the tag names according to their document type
20 Example 2 <?xml version= 1.0?> <pers:person> <pers:name> <pers:title>sir</pers:title> <pers:first>john</pers:first> <pers:middle>fitzgerald Johansen</pers:middle> <pers:last>doe</pers:last> </pers:name> <pers:position>vice President of Marketing</pers:position> <pers:résumé> <xhtml:html> <xhtml:head><xhtml:title>resume of John Doe</xhtml:title></xhtml:head> <xhtml:body> <xhtml:h1>john Doe</xhtml:h1> <xhtml:p>john s a great guy, you know?</xhtml:p> </xhtml:body> </xhtml:html> </pers:résumé> </pers:person>
21 Using prefixes The drawback is that the names of XHTML element differ from standard XHTML names By using prefix, 2 kinds of elements are created in the document, e.g. any elements with prefix pers belong to the same group this groups are called namespace
22
23 Using prefixes Problem still exist if the authors choose the same prefix for their works Using unambiguous internet domain name as part of prefix will solve this problem
24 Example 3 <?xml version="1.0"?> <{ <{ <{ Sir </{ <!--etc...--> Even though it look like a URL, a namespace name is only used as a name, not a location
25 Using prefixes From Ex 3 the problem still exist, tag name contain forbidden character / { } To completely solve all the problem of namespace/prefix, three-part names are created 1 st part: attribute name 2 nd part: URI associated with the name for using as a namespace of the element 3 rd part: name according to naming rules choosen as prefix that refers to URI
26 Example 4: namespace declaration URI name <pers:person xmlns:pers=" 1 st 3 rd 2 nd <pers:person xmlns:pers=" <pers:name> <pers:title>sir</pers:title> </pers:name> </pers:person>
27 Example 5 <?xml version= 1.0?> <pers:person </pers:person> xmlns:pers= xmlns:html= > <pers:name> <pers:title>sir</pers:title> <pers:first>john</pers:first> <pers:middle>fitzgerald Johansen</pers:middle> <pers:last>doe</pers:last> </pers:name> <pers:position>vice President of Marketing</pers:position> <pers:résumé> <html:html> <html:head> <html:title>resume</html:title> </html:head> <html:body> <html:h1>john Doe</html:h1> <html:p>john s a great guy</html:p> </html:body> </html:html> </pers:résumé>
28 Default namespaces Making things about prefix easier XML code looks cleaner Example 6 <person xmlns=" <name> <title>sir</title> </name> </person>
29 Example 7 <person xmlns= xmlns:xhtml= > <name/> <xhtml:p>this is XHTML</xhtml:p> </person> <person xmlns= xmlns= >
30 Declaring Namespaces on Descendants Namespaces can be declared in: Root element Any element other than root By declaring namespace in root element the effect of declaration is global to the document Declaring namespace in other element the effect of declaration is local to that element and its child
31 Example 8 <person xmlns= > <name/> <xhtml:p xmlns:xhtml= > This is XHTML</xhtml:p> </person> <person xmlns= > <name/> <p xmlns= > This is XHTML</p> </person>
32 Canceling Default Namespace Default namespace can be cancel by setting xmlns attribute to null Example 9 <employee> <name>jane Doe</name> <notes> <p xmlns= >I ve worked with <name xmlns= >Jane Doe</name> for over a <em>year</em>now.</p> </notes> </employee>
33 Namespaces contain information (vocabulary) about Tags (element) only No information (vocabulary) about attributes kept inside namespace
34 Document Type Definition DTD helps validating XML documents Generally DTDs consist of 3 basic parts: Element declarations Attribute declarations Entity declarations To apply DTD to XML documents, document declaration: DOCTYPE must be declare
35 Declaring DTD Internal DTD Declaration DTD declared within the XML file <?xml version= 1.0 > <!DOCTYPE rootnode [ ]> <rootnode> </rootnode>
36 Declaring DTD External DTD Declaration DTD declared in a separate file <?xml version= 1.0 > <!DOCTYPE rootnode SYSTEM dtdfile.dtd > <rootnode> </rootnode>
37 Element Declarations Consist of 3 basic parts The ELEMENT declaration The element name The element content model Element, Mixed, Empty, Any <!ELEMENT name (first, middle, last)> Must appear in this order
38 Element content Sequences <!ELEMENT name (first, middle, last)> Choice <!ELEMENT location (address GPS)> Combining sequences and choice <!ELEMENT location (address (latitude, longitude))> Mixed content refers to any element with text in its content <!ELEMENT first (#PCDATA)> PCDATA: Parsed Character DATA text
39 <!ELEMENT description (#PCDATA em strong br)*> Using choice mechanism to describe content model In mixed content model #PCDATA must appear first in the list of choice * outside ( ) is known as a cardinality indicator, it tells the parser to repeat the content model With * the order or number of element are ignore Empty Content <!ELEMENT br EMPTY> Any Content As its name any elements declared within DTD can be use within the content in any order and any number of times <!ELEMENT description ANY>
40 Example 10 <name> <first>john</first> <middle>fitzgerald Johansen</middle> <last>doe</last> </name> <!ELEMENT name (first, middle, last)> <!ELEMENT first (#PCDATA)> <!ELEMENT middle (#PCDATA)> <!ELEMENT last (#PCDATA)>
41 Example 11 <location> <latitude> </latitude> <longitude> </longitude> </location> <location> <address>1 Chalongkrung Road</address> </location> <!ELEMENT location (address (latitude, longitude))> <!ELEMENT address (#PCDATA)> <!ELEMENT latitude (#PCDATA)> <!ELEMENT longitude (#PCDATA)>
42 Example 12 <description> The XML document<em>first edition</em><br/> We<strong> learn</strong> XML </description> <!ELEMENT description (#PCDATA em strong br)*> <!ELEMENT em (#PCDATA)> <!ELEMENT strong (#PCDATA)> <!ELEMENT br EMPTY>
43 Cardinality defines how many times the element will appear within a content model? the element may appear once or not at all + the element may appear one or more times * the element may appear zero or more times Example <!ELEMENT name (first+, middle?, last)> <!ELEMENT location (address* (latitude, longitude))> <!ELEMENT location (address* (latitude, longitude)*)>
44 <!ELEMENT name (first+, middle?, last)> <name> <first>john</first> <last>doe</last> </name> <name> <first>john</first> <first>fitzgerald</first> <last>doe</last> </name> <name> <first>john</first> <first>fitzgerald</first> <first>simon</first> <middle>johansen</middle> <last>doe</last> </name> <name> <first>john</first> <middle>johansen</middle> <last>doe</last> </name>
45 <!ELEMENT location (address* (latitude, longitude))> <!ELEMENT location (address* (latitude, longitude)*)> <location> <address>redlands, CA, USA</address> <latitude> </latitude> <longitude> </longitude> <latitude> </latitude> <longitude> </longitude> </location> <location> <address>redlands, CA, USA</address> <latitude> </latitude> <longitude> </longitude> </location>
46 <!ELEMENT location (address (latitude, longitude))*> <location> <latitude> </latitude> <longitude> </longitude> <address>redlands, CA, USA</address> <latitude> </latitude> <longitude> </longitude> </location>
W3C XML XML Overview
Overview Jaroslav Porubän 2008 References Tutorials, http://www.w3schools.com Specifications, World Wide Web Consortium, http://www.w3.org David Hunter, et al.: Beginning, 4th Edition, Wrox, 2007, 1080
More informationXML. Part II DTD (cont.) and XML Schema
XML Part II DTD (cont.) and XML Schema Attribute Declarations Declare a list of allowable attributes for each element These lists are called ATTLIST declarations Consists of 3 basic parts The ATTLIST keyword
More 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 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 information! $ % &' ()(* % ' % + & ',!% ' +!' -+.-* % * %! &&./.! +))' 0 1/122((('(# '2 2 /!' #
! " ! $ % &' ()(* % ' % + & ',!% ' +!' -+.-* % * %! &&./.! +))' 0 1/122((('(# '2 2 /!' #! 3 51%!$! $! 6 +7 )! / 8(!).! 9 )/ $ 4 " " 1 $! :+ +1; &.!!&" $! $!15.!!.-<
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 & Related Languages
Unit 1 1 Introduction: XML XML = extensible Markup Language the universal format for structured documents and data on the Web. www.w3c.org/xml simple, very flexible text format derived from SGML (ISO 8879).
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 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 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. 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 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 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 and Semantic Web Technologies. II. XML / 3. XML Namespaces
II. XML / 3. XML Namespaces Lars Schmidt-Thieme Information Systems and Machine Learning Lab (ISMLL) Institute of Economics and Information Systems & Institute of Computer Science University of Hildesheim
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 informationComputer Science E-75 Building Dynamic Websites
Computer Science E-75 Building Dynamic Websites Harvard Extension School http://www.cs75.net/ Lecture 3: XML David J. Malan dmalan@harvard.edu 0 1 XML element child element start tag end tag attribute
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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 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 informationComputer Science S-75 Building Dynamic Websites
Computer Science S-75 Building Dynamic Websites Harvard Summer School https://www.cs75.net/ Lecture 3: MVC, XML David J. Malan malan@harvard.edu 0 CS50 Appliance https://manual.cs50.net/appliance 1 MVC
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 informationChapter 1. Creating XML Documents
4033ch01.qxd 9/11/01 9:18 AM Page 3 Chapter 1 Creating XML Documents The extensible Markup Language (XML) is a text- and data-formatting language that, like HTML, has a tagbased syntax. At first glance,
More informationIntroduction to XML. Yanlei Diao UMass Amherst April 17, Slides Courtesy of Ramakrishnan & Gehrke, Dan Suciu, Zack Ives and Gerome Miklau.
Introduction to XML Yanlei Diao UMass Amherst April 17, 2008 Slides Courtesy of Ramakrishnan & Gehrke, Dan Suciu, Zack Ives and Gerome Miklau. 1 Structure in Data Representation Relational data is highly
More 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 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 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 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 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 informationCreating Markup with XML
2 Creating Markup with XML Objectives To learn how to use XML to create custom markup. To understand the concept of an XML parser. To use elements and attributes to mark up data. To understand the difference
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 Namespaces. What does it EXACTLY mean? Why Do We Need Namespaces?
XML Namespaces What does it EXACTLY mean? Why Do We Need Namespaces? 1. To distinguish between elements and attributes from different vocabularies with different meanings. 2. To group all related elements
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 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 information5/19/2015. Objectives. JavaScript, Sixth Edition. Introduction to the World Wide Web (cont d.) Introduction to the World Wide Web
Objectives JavaScript, Sixth Edition Chapter 1 Introduction to JavaScript When you complete this chapter, you will be able to: Explain the history of the World Wide Web Describe the difference between
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 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 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 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 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 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 informationLABORATORY 117. Intorduction to VoiceXML
LABORATORY 117 Intorduction to VoiceXML 1 TAC2000/2000 Outline XML VoiceXML Building your VoiceXML application on TellMe Studio 2 TAC2000/2000 XML Extensible Markup Language The de facto standard for defining
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 informationReview of HTML. Chapter Pearson. Fundamentals of Web Development. Randy Connolly and Ricardo Hoar
Review of HTML Chapter 3 Fundamentals of Web Development 2017 Pearson Fundamentals of Web Development http://www.funwebdev.com - 2 nd Ed. What Is HTML and Where Did It Come from? HTML HTML is defined as
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 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 module 2. Creating XML. Hans C. Arents. senior IT market analyst. I.T. Works. Guiding the IT Professional
XML module 2 Creating XML Hans C. Arents senior IT market analyst I.T. Works Guiding the IT Professional Innovation Center, Technologiepark 3, B-9052 Gent (Belgium), Tel: +32 (0)9 241 56 21 - Fax: +32
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 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 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 informationEXtensible Markup Language XML
EXtensible Markup Language XML 1 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.
More informationFull file at New Perspectives on HTML and CSS 6 th Edition Instructor s Manual 1 of 13. HTML and CSS
New Perspectives on HTML and CSS 6 th Edition Instructor s Manual 1 of 13 HTML and CSS Tutorial One: Getting Started with HTML 5 A Guide to this Instructor s Manual: We have designed this Instructor s
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 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 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 (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 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 informationXML: Parsing and Writing
XML: Parsing and Writing Version 5.1 Paul Graunke and Jay McCarthy February 14, 2011 (require xml) The xml library provides functions for parsing and generating XML. XML can be represented as an instance
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 informationCreating Markup with XML
advjhtp1_appa.fm Page 1611 Thursday, August 23, 2001 3:42 PM A Creating Markup with XML Objectives To create custom markup using XML. To understand the concept of an XML parser. To use elements and attributes
More informationComputer Science E-75 Building Dynamic Websites
Computer Science E-75 Building Dynamic Websites Harvard Extension School http://www.cs75.net/ Lecture 0: HTTP David J. Malan malan@post.harvard.edu http://www.cs.harvard.edu/~malan/ 0 DNS Image from wikipedia.org.
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 informationWebAccess Configuration Manual MTConnect Driver Guide
MTConnect Driver Guide Advantech Corp., Ltd. page 1 MTConnect Driver Guide 1. Block Diagram 2. WebAccess Setting 3. Appendix Advantech Corp., Ltd. page 2 1. Block Diagram CNC+Adapter MTConnect Agent Application
More information