XML e X tensible M arkup L anguage 1/23.

Slides:



Advertisements
Similar presentations
XML Schema Heewon Lee. Contents 1. Introduction 2. Concepts 3. Example 4. Conclusion.
Advertisements

XML INTRODUCTION Prepared by Hongming Yu Modified by Fernando Farfán.
XML Craig Stewart Dr. Alexandra I. Cristea
XML and Enterprise Computing. What is XML? Stands for “Extensible Markup Language” –similar to SGML and HTML –document “tags” are used to define content.
 Fundamentals of Web Design.  Describe the history and theory of XHTML  Understand the rules for creating valid XHTML documents  Apply a DTD to an.
XML XML What XML is and what it means to me as a Computer Scientist By: Derek Edwards CS 376 March 10, 2003.
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
IS 373—Web Standards Todd Will
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
DT228/3 Web Development Introduction to XML.
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
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
Introduction to XML: Yong Choi CSU Bakersfield.
XML Introduction By Hongming Yu Feb 6 th, Index Markup Language: SGML, HTML, XML An XML example Why is XML important XML introduction XML applications.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Jennifer Widom XML Data XML Schema. Jennifer Widom XML Schema “Valid” XML Adheres to basic structural requirements  Also adheres to content-specific.
Introduction to XML This material is based heavily on the tutorial by the same name at
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.
 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.
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.
Why XML ? Problems with HTML HTML design - HTML is intended for presentation of information as Web pages. - HTML contains a fixed set of markup tags. This.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Schemas Ellen Pearlman Eileen Mullin Programming the Web Using XML.
XML: Overview MIS 181.9: Service Oriented Architecture 2 nd Semester,
XML Overview. Chapter 8 © 2011 Pearson Education 2 Extensible Markup Language (XML) A text-based markup language (like HTML) A text-based markup language.
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
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,
Session IV Chapter 9 – XML Schemas
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
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 Credits Prepared by: Rajendra P. Srivastava Ernst & Young Professor University of Kansas Sponsored by: Ernst & Young, LLP (August 2005) XBRL Module Part.
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.
The eXtensible Markup Language (XML). Presentation Outline Part 1: The basics of creating an XML document Part 2: Developing constraints for a well formed.
What it is and how it works
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
Tutorial 13 Validating Documents with Schemas
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
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.
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.
Working with XML. Markup Languages Text-based languages based on SGML Text-based languages based on SGML SGML = Standard Generalized Markup Language SGML.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
XML Extensible Markup Language
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 SCHEMA 1 CH 20. Objective 2 What’s wrong with DTDs? What is a schema? The W3C XML Schema Language Hello schemas Complex types Simple types Deriving.
1 Introduction to XML Babak Esfandiari. 2 What is XML? introduced by W3C in 98 Stands for eXtensible Markup Language it is more general than HTML, but.
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.
XML QUESTIONS AND ANSWERS
Eugenia Fernandez IUPUI
XML Data DTDs, IDs & IDREFs.
XML Introduction By Hongming Yu Feb 6th, 2002.
What is XML?.
CSE591: Data Mining by H. Liu
CH 20 XML Schema.
Allyson Falkner Spokane County ISD
Presentation transcript:

XML e X tensible M arkup L anguage 1/23

What is XML ● stands for eXtensible Markup Language ● a markup language much like HTML ● designed to describe data ● tags not predefined ● you must describe your own tags ● uses a Document Type Definition (DTD) or an XML Schema to describe data 2/23

XML and HTML ● different goals ● HTML designed to display data ● how data looks ● about displaying information ● XML designed to describe data ● what data is ● about describing information ● structuring, storing & sending information 3/23

what does XML do? ● XML can be used to exchange data ● many different applications ● over the internet ● XML can be used to create new languages ● WAP (Wireless Application Protocol) ● WML (Wireless Markup Language) XML doesn’t do anything 4/23

XML a cross-platform, software & hardware independent tool for transmitting information 5/23

XML example Vti 1.3 litres 6000 rpm 42 litres 6/23 9

XML syntax ● XML declaration ● root element ● XML elements 7/23

XML elements ● everything from (including) start tag to (including) end tag ● tags are case sensitive ● != ● can have sub elements … 8/23

XML attributes ● XML elements can have attributes in the start tag ● ● additional information about elements ● not part of data ● elements or attributes? 9/23 7

elements or attributes ● example 1 – date attribute ….. ● example 2 - date element 1/9/05 ….. ● example 3 – expanded date element ….. 10/23

avoid attributes ● cannot contain multiple values ● not easily expandable – future ● cannot describe structures ● more difficult to read 11/23

rule of thumb metadata should be stored as attributes the data should be stored as elements 12/23

XML validation ● XML with correct syntax is Well Formed ● a DTD (Document Type Definition) defines the legal contents of an XML document ● an XML schema is an alternative to a DTD 13/23

XML schemas ● ability to specify data types for content and attribute values ● ability to validate complex structures ● namespace awareness 14/23

why not DTDs ● no data typing ability ● e.g. can’t say element must be an integer 1-12 ● non-XML syntax ● cannot be parsed by same parser ● difficult to modularize and combine ● cannot enforce order or number of child elements 15/23

what is a schema ● hypothetical outline - pattern ● document that describes permissible content of a database ● many schema languages for XML ● W3C XML Schema Language ● by convention – in.xsd extension 16/23

schema example Hello XML! How are you? <GREETING xsi:noNamespaceSchemaLocation=“Greeting.xsd” xmlns:xsi=“ Schema - instance”> Hello XML! 17/23

schema structure ● root element - schema ● usually namespace bound to prefix xsd or xs ● elements declared using xsd:element ● name attribute specifies which element declared ● type attribute declares data type ● attach schema to XML document by adding xsi:noNamespaceSchemaLocation attribute to the document’s root element 18/23

XML example Vti 1.3 litres 6000 rpm 42 litres 19/23 20

schema example 20/23 19

XML example house storey1 </component storey2 storey3 21/23 22

schema example <xsd:element name=“no.of storeys” type=“xsd:positiveInteger” maxInclusive=“4”/> <xsd:element name=“component” type=“xsd:string maxOccurs=“unbounded”/> 22/23 21

aecXML ● working group – 1999 ● for exchange of AEC specific information ● ● XML schemas for communication ● designing, specifying, estimating, sourcing, installing & maintaining products & materials over the Internet ● AISC steel information in XML ● Bentley ● aecXML & IFC ● 23/23