CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:

Slides:



Advertisements
Similar presentations
Chapter 7 An Introduction to XML.
Advertisements

Ali Alshowaish w3schools. XML documents use a self-describing and simple syntax: The first line is the XML declaration. It defines the XML version (1.0)
Dr. Alexandra I. Cristea XHTML.
XHTML 16-Apr-17.
INF201 Fall2010 Intro. to Info. Technologies Department of Informatics University at Albany – SUNY Original Source: w3schools.com Prepared by Xiao Liang,
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
XML e X tensible M arkup L anguage 1/23.
IS 373—Web Standards Todd Will
17-Jun-15 XHTML 2 What is XHTML? XHTML stands for Extensible Hypertext Markup Language XHTML is aimed to replace HTML.
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
XML Introduction What is XML –XML is the eXtensible Markup Language –Became a W3C Recommendation in 1998 –Tag-based syntax, like HTML –You get to make.
DECO 3002 Advanced Technology Integrated Design Computing Studio Tutorial 5 – XML Basic School of Architecture, Design Science and Planning Faculty of.
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
Tutorial 11 Creating XML Document
XML Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
Introduction to XML: Yong Choi CSU Bakersfield.
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 1 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
Introduction to XML Rashmi Kukanur. XML XML stands for Extensible Markup Language XML was designed to carry data XML and HTML designed with different.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Introduction to XML This material is based heavily on the tutorial by the same name at
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
Introduce of XML Xiaoling Song CS157A. What is XML? XML stands for EXtensible Markup Language XML stands for EXtensible Markup Language XML is a markup.
ECA 228 Internet/Intranet Design I Intro to XML. ECA 228 Internet/Intranet Design I HTML markup language very loose standards browsers adjust for non-standard.
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
 Introduction to XML Introduction to XML  Features of XML Features of XML  Syntax of XML Syntax of XML  Syntax rules of XML document Syntax rules.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
What is XML? XML stands for EXtensible Markup Language
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Pemrograman Berbasis WEB XML -Aurelio Rahmadian- Sumber: w3cschools.com.
XP 1 CREATING AN XML DOCUMENT. XP 2 INTRODUCING XML XML stands for Extensible Markup Language. A markup language specifies the structure and content of.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
1 XHTML محمد احمدی نیا 2 Of 19 HTML vs XHTML  XHTML is a stricter and cleaner version of HTML.  by combining the strengths of HTML.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
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 is designed to describe data and to focus on what data is. HTML is designed to display data and to focus on how data looks.  XML is created to structure,
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
Avoid using attributes? Some of the problems using attributes: Attributes cannot contain multiple values (child elements can) Attributes are not easily.
How do I use HTML and XML to present information?.
CSC 330 E-Commerce Teacher Ahmed Mumtaz Mustehsan Ahmed Mumtaz Mustehsan GM-IT CIIT Islamabad GM-IT CIIT Islamabad CIIT Virtual Campus, CIIT COMSATS Institute.
XML eXtensible Markup Language. Topics  What is XML  An XML example  Why is XML important  XML introduction  XML applications  XML support CSEB.
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
1 Dr Alexiei Dingli XML Technologies XML. 2 XML stands for EXtensible Markup Language XML is a markup language much like HTML XML was designed to carry.
WEB APPLICATION DEVELOPMENT For More visit:
Introduction to XML This presentation covers introductory features of XML. What XML is and what it is not? What does it do? Put different related technologies.
XML Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
An Introduction to XML Sandeep Bhattaram
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
What it is and how it works
1 XML eXtensible Markup Language. 2 XML vs. HTML HTML is a HyperText Markup language HTML is a HyperText Markup language Designed for a specific application,
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
XML Basics A brief introduction to XML in general 1XML Basics.
Submitted To: Ms. Poonam Saini, Asst. Prof., NITTTR Submitted By: Rohit Handa ME (Modular) CSE 2011 Batch.
Web Technologies Lecture 4 XML and XHTML. XML Extensible Markup Language Set of rules for encoding a document in a format readable – By humans, and –
ASHIMA KALRA  INTRODUCTION OF XML INTRODUCTION OF XML  XML FEATURES XML FEATURES  XML SYNTAX XML SYNTAX  XML ELEMENTS XML ELEMENTS  XML ATTRIBUTES.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
IS444: Modern software development tools Dr. Azeddine Chikh.
XML. HTML Before you continue you should have a basic understanding of the following: HTML HTML was designed to display data and to focus on how data.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
SEMI-STRUCTURED DATA (XML) 1. SEMI-STRUCTURED DATA ER, Relational, ODL data models are all based on schema Structure of data is rigid and known is advance.
XML – Basic Concepts (modified version from Dr. Praveen Madiraju) 2015, Fall Pusan National University Ki-Joune Li.
XML Introduction to XML Extensible Markup Language.
XML Notes taken from w3schools. What is XML? XML stands for EXtensible Markup Language. XML was designed to store and transport data. XML was designed.
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.
XML BASICS and more…. What is XML? In common:  XML is a standard, simple, self-describing way of encoding both text and data so that content can be processed.
What is XML?.
Allyson Falkner Spokane County ISD
Presentation transcript:

CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page: CISC3140-Meyer-lec7 1

Content Interoperability XML What XML is used for Tree Structure Syntax Rules Elements Naming Rules Attributes Document Type Definition (DTD) CISC3140-Meyer-lec7 2

The Death of Codd's Dream Different RDBMS are NOT compatible. ▫Codd's 12 (13) commandments (for RDBMS) where supposed to insure that all RDBMS would be able to for work with each other. ▫Today, no RDBMS implements all 13 rules. ▫Proprietary systems implement their own rules. ▫Proprietary systems implement their own SQL. And yet we need to share database information. Interoperability: A property referring to the ability of diverse systems to work together. CISC3140-Meyer-lec7 3

Markup Languages Markup languages allow us to add information to text, in a manner that is distinguishable from the text. Within a markup language we find 3 distinct types of markup. 1.Presentational markup: WYSIWYG effect. 2.Procedural markup: Including instruction. 3.Semantic markup: Used to attach meaning to sections of text. CISC3140-Meyer-lec7 4

XML XML is a markup language (like HTML, SGML, ODF). XML stands for eXtensible Markup Language and was initially released in the late 90's. The XML standard was created by W3C to provide an easy to use and standardized way to store self-describing data (self-describing data is data that describes both its content and its structure) XML is a very useful tool for allowing communication between otherwise incompatible database systems (in other words it provide interoperability). In XML you can define your own tags. CISC3140-Meyer-lec7 5

Key Terminology Tag: A markup construct that begins with " ". Tags come in three flavors: start-tags, for example, end-tags, for example, and empty-element tags, for example. Element: A component that begins with a start-tag and ends with a matching end-tag, or consists only of an empty-element tag. The characters between the start-and end-tags, if any, are the element's content, and may contain include other elements, which are called child elements. An example of an element is Hello, world.. Another is Attribute: A construct consisting of a name/value pair that exists within a start-tag or empty-element tag. In the example (below) the element x has two attributes, id and instock:. CISC3140-Meyer-lec7 6

Difference Between XML and (X)HTML XML and HTML were designed with different goals: XML was designed to transport and store data ▫Data-centric markup -> focus on data ▫XML allows the author to create his/her own tags (X)HTML was designed to display documents ▫Document-centric markup -> focus on document ▫Default tag set allows designer to focus on how text is presented (how it looks) CISC3140-Meyer-lec7 7

XML Example XML was created to structure, store, and transport information Everyday Italian Giada De Laurentiis The first line is the XML declaration; It defines the XML version (1.0) and an encoding to use (Latin-1/West European character set) The next line describes the root element of the document CISC3140-Meyer-lec7 8

XML Tree Structure XML documents form a logical tree-like structure that starts at "the root" and branches into "the leaves". XML documents must contain a root element. This root elements is "the parent" of all other elements. All elements can have sub elements (child elements) Elements with the same parent are siblings. CISC3140-Meyer-lec7 9

XML Tree Structure - Example CISC3140-Meyer-lec7 10

Rules for XML (all examples are WRONG) 1.XML elements must be properly nested ▫EX: This text is bold and italic 2.XML elements must always be closed ▫EX: This is a paragraph 3.XML elements are case sensitive ▫EX: Content of x 4.XML documents must have one root element CISC3140-Meyer-lec7 11

Rules for XML (cont) (all examples are CORRECT) 5.Attribute values must be quoted ▫Ex: 6.XML elements must be properly named: CAN contain letters, numbers, and other characters CANNOT start with a number or punctuation CANNOT start with the letters xml (XML, or Xml, etc) CANNOT cannot contain spaces CAN be any name you want (namespaces can be used to delimitate between identical names) CISC3140-Meyer-lec7 12

XML Attributes Attributes often provide information that is not a part of the data (meta-data). There are problems with using attributes: 1.Attributes cannot contain multiple values (elements can) 2.Attributes cannot contain tree structures (elements can) 3.Attributes are not easily expandable (for future changes) 4.Attributes are more difficult to read and maintain. Use elements for data. In general use attributes for information that is not part of the data itself (meta-data). CISC3140-Meyer-lec7 13

What do we use XML for? XML Simplifies Data Sharing ▫XML data is stored in plain text in a standardized format. This provides a software- and hardware- independent way of storing data. XML Simplifies Data Transport ▫Exchanging data as XML greatly reduces the complexity of exchanging data amongst different systems (SOAP, ODF). CISC3140-Meyer-lec7 14

What do we use XML for (cont)? XML Simplifies Platform Changes ▫Makes it easier to expand or upgrade to new operating systems, new applications, or new browsers, without losing data. XML Separates Data from HTML ▫Store data in separate XML files. This way you can concentrate on using HTML for layout and display, and be sure that changes in the underlying data will not require any changes to the HTML. CISC3140-Meyer-lec7 15

Problems with XML XML is profoundly wasteful in terms of storage space requirements: ▫Repeated tag names induce repeated “overhead” cost (2N +5)E where N denotes the average size of tag names in the document and E is the number of elements.. Working with XML is also costly, whether I move it in and out of a RDMS to query it, or I query it natively (XPATH, XSLT, Xquery). CISC3140-Meyer-lec7 16

Document Type Definitions (DTDs) The purpose of a DTD (Document Type Definition) is to define the legal building blocks of a particular XML document. If the DTD is declared inside the XML file, it should be wrapped in a DOCTYPE definition with the following syntax: CISC3140-Meyer-lec7 17

DTD In-File Declaration ]> Jack Jill Reminder Pick up some water! CISC3140-Meyer-lec7 18

DTD External-File Declaration If the DTD is declared in an external file, it should be wrapped in a DOCTYPE definition with the following syntax: Jack Jill Reminder Pick up some water! CISC3140-Meyer-lec7 19

Well-Formed VS. Valid XML An XML document that is “well-formed” is obeying all of the rules for XML. A "Valid" XML document is a "Well Formed" XML document, which also conforms to the rules of a DTD or XSD. W3C Schools has a “validator” tool that you can use to see if an XML document is valid for a particular DTD.“validator” tool CISC3140-Meyer-lec7 20

You got this… This lecture has been mostly about defining XML in terms of a data storage and transport mechanism. In your lab you will create some XML files with a DTD. See if you can get them to validate. Next week we will look at XML in terms of its use in data retrieval systems (rather than relational tables). XHTML is a valid subset of XML, and is used to create web-pages. Why would this be advantageous? CISC3140-Meyer-lec7 21

CISC3140-Meyer-lec7 Source 22