Working with XML. Markup Languages Text-based languages based on SGML Text-based languages based on SGML SGML = Standard Generalized Markup Language SGML.

Slides:



Advertisements
Similar presentations
The eXtensible Markup Language (XML) An Applied Tutorial Kevin Thomas.
Advertisements

XML: Extensible Markup Language
XML and Enterprise Computing. What is XML? Stands for “Extensible Markup Language” –similar to SGML and HTML –document “tags” are used to define content.
An Introduction to XML Based on the W3C XML Recommendations.
The Semantic Web. The Web Today Designed for Human to read Cannot express meaning Architecture: URL –Decentralized: Link structure Language: html.
Ontology Notes are from:
1 Introduction to XML. XML eXtensible implies that users define tag content Markup implies it is a coded document Language implies it is a metalanguage.
XML e X tensible M arkup L anguage 1/23.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 16 – Part 2 The World Wide Web The New Yorker, Peter Steiner, July 5, 1993.
M.Sc. of Advanced Software Engineering CO7206 System Reengineering XML & AST Many Slides are by Georgios Koutsoukos.
1 COS 425: Database and Information Management Systems XML and information exchange.
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
XML –Query Languages, Extracting from Relational Databases ADVANCED DATABASES Khawaja Mohiuddin Assistant Professor Department of Computer Sciences Bahria.
XML Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
WWW and Internet The Internet Creation of the Web Languages for document description Active web pages.
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
4/20/2017.
Aalborg University – Department of Production XML Extensible Markup Language Kaj A. Jørgensen Aalborg University, Department of Production XML – Extensible.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
 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.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 XML Taken from Chapter 7.
16-1 The World Wide Web The Web An infrastructure of distributed information combined with software that uses networks as a vehicle to exchange that information.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
XML: Overview MIS 181.9: Service Oriented Architecture 2 nd Semester,
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.
Introduction to XML Eugenia Fernandez IUPUI. What is XML? From the World Wide Web Consortium (W3C) The Extensible Markup Language (XML) is the universal.
XML Overview. Chapter 8 © 2011 Pearson Education 2 Extensible Markup Language (XML) A text-based markup language (like HTML) A text-based markup language.
March 19, ICE 1341 – Programming Languages (Lecture #8) In-Young Ko Programming Languages (ICE 1341) Lecture #8 Programming Languages (ICE 1341)
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
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 THE HELL IS XML?. What the Hell is XML? What the hell is XML?  Markup Language  Derived from SGML (Standardized General Markup Language)  Describes.
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.
Web Services Description Language (WSDL) Jason Glenn CDA 5937 Process Coordination in Service and Computational Grids September 30, 2002.
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
Chapter 27 The World Wide Web and XML. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.27-2 Topics in this Chapter The Web and the Internet.
Electronic Commerce COMP3210 Session 4: Designing, Building and Evaluating e-Commerce Initiatives – Part II Dr. Paul Walcott Department of Computer Science,
Web Programming : Building Internet Applications Chris Bates CSE :
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
Presentation Topic: XML and ASP Presented by Yanzhi Zhang.
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.
Trees CS 105. L9: Trees Slide 2 Definition The Tree Data Structure stores objects (nodes) hierarchically nodes have parent-child relationships operations.
Chapter 27 The World Wide Web and XML. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.27-2 Topics in this Chapter The Web and the Internet.
The Semistructured-Data Model Programming Languages for XML Spring 2011 Instructor: Hassan Khosravi.
XML, XSL, and SOAP Building Object Systems from Documents CSC/ECE 591o Summer 2000.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
XML A Language Presentation. Outline 1. Introduction 2. XML 2.1 Background 2.2 Structure 2.3 Advantages 3. Related Technologies 3.1 DTD 3.2 Schemas and.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. An Overview of XML Ellen Pearlman Eileen Mullin Programming the Web Using.
CO1552 – Web Application Development Further JavaScript: Part 1: The Document Object Model Part 2: Functions and Events.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
XML The Extensible Markup Language (XML ), which is comparable to SGML and modeled on it, describes how to describe a collection of data. A standard way.
Copyright © 2004 ProsoftTraining, All Rights Reserved. Lesson 2: Markup Language and Site Development Essentials © 2007 Prosoft Learning Corporation All.
From XML to DAML – giving meaning to the World Wide Web Katia Sycara The Robotics Institute
Evaluation Biztalk Table of Contents Introduction to XML. Anatomy of an XML document. What is an XML Schema? What is SOAP? XML Web Services overview.
 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.
XML Extensible Markup Language
XSLT, XML Schema, and XPath Matt McClelland. Introduction XML Schema ▫Defines the content and structure of XML data. XSLT ▫Used to transform XML documents.
XML 1. Chapter 8 © 2013 Pearson Education, Inc. Publishing as Prentice Hall SAMPLE XML SCHEMA (XSD) 2 Schema is a record definition, analogous to the.
XML Databases Presented By: Pardeep MT15042 Anurag Goel MT15006.
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.
Components.
The Semantic Web By: Maulik Parikh.
XML Related Technologies
Yaşar Tonta & Orçun Madran [yasartonta, Hacettepe University
XML in Web Technologies
Session I - Introduction
Session I - Introduction
Zachary Cleaver Semantic Web.
Presentation transcript:

Working with XML

Markup Languages Text-based languages based on SGML Text-based languages based on SGML SGML = Standard Generalized Markup Language SGML = Standard Generalized Markup Language actually a metalanguage…a set of rules for creating markup languages actually a metalanguage…a set of rules for creating markup languages Features of SGML-derived markup languages Features of SGML-derived markup languages Elements (expressed as tags delimited by ) Elements (expressed as tags delimited by ) Attributes – features of the elements Attributes – features of the elements Documents – composed of elements Documents – composed of elements Document type definitions (schema definitions) – provide the meaning for and structure of elements and their attributes Document type definitions (schema definitions) – provide the meaning for and structure of elements and their attributes HTML and XML are both derivations of SGML HTML and XML are both derivations of SGML

What is XML? EXtensible Markup Language EXtensible Markup Language A markup language much like HTML A markup language much like HTML More precisely, a markup metalanguage that allows you to create your own markup language. More precisely, a markup metalanguage that allows you to create your own markup language. XML was designed to describe data XML was designed to describe data XML tags are not predefined. You must define your own tags XML tags are not predefined. You must define your own tags XML uses a Document Type Definition (DTD) or an XML Schema to describe the data XML uses a Document Type Definition (DTD) or an XML Schema to describe the data XML with a DTD or XML Schema is designed to be self-descriptive XML with a DTD or XML Schema is designed to be self-descriptive Whereas an XML document contains data, an associated XML Schema contains metadata describing the format and requirements for that data. Whereas an XML document contains data, an associated XML Schema contains metadata describing the format and requirements for that data.

XML vs. HTML Purpose of HTML: display information on a browser Purpose of HTML: display information on a browser HTML is a language based on the SGML coding conventions HTML is a language based on the SGML coding conventions Purpose of XML: provide a structure for the description of data Purpose of XML: provide a structure for the description of data XML is a subset of SGML XML is a subset of SGML It is a metalanguage with no preconceived elements or attributes It is a metalanguage with no preconceived elements or attributes You use XML to create your own “language” for describing data by specifying elements and attributes You use XML to create your own “language” for describing data by specifying elements and attributes NOTE: a major purpose of XML is to serve as a standardized protocol for transmitting data between two different applications communicating with each other over the Web NOTE: a major purpose of XML is to serve as a standardized protocol for transmitting data between two different applications communicating with each other over the Web HTML is for B2C, XML is for B2B

Features of Markup Languages Document Document Element Element Elements arranged within the document in hierarchical order (tree structure) Elements arranged within the document in hierarchical order (tree structure) Each element has a name (first word in its begin tag) and a value (everything between its begin tag and its end tag) Each element has a name (first word in its begin tag) and a value (everything between its begin tag and its end tag) Syntax: value Syntax: value Attribute Attribute Each element can include attributes (properties) Each element can include attributes (properties) An attribute includes a name and a value An attribute includes a name and a value Syntax:name=value Syntax:name=value

Sample XML Document (no attributes) XML representation is hierarchical: a TREE

What is a tree? Data structure for representing conceptual or data hierarchies A type of collection Other collections? array, table (2-d array), stack, queue, linked list, hash table (also called dictionary), Characteristics of a Tree Nodes Links (also called branches) Parent-child relationships between nodes Parent can have many children Child has only one parent Path = a route from one node to another in the tree (e.g. from root to a leaf) Traversal in a tree traversal  use RECURSION to implement tree traversal

Example XML Documents From MS Access From MS Access Data from a table or query in a.XML document Data from a table or query in a.XML document Metadata in a.XSD document (XML Schema) Metadata in a.XSD document (XML Schema) From Amazon Web Services (AWS) From Amazon Web Services (AWS) Result of XML book item search request Result of XML book item search request For Semantic Web For Semantic Web Web Ontology Language (OWL) Web Ontology Language (OWL)

XML version of Departments table of Employee database (created by MS Access)

XSD (XML Schema Description) defines the metadata of an XML document. XSD is also expressed in XML format. Created by MS Access

RSS (Really Simple Syndication) is a common XML format. An RSS feed is composed of channels which contain items.

Amazon Web Services (AWS) provides an XML-based communication protocol for interacting with applications over the internet.

OWL (XML-based) Web Ontology Language Semantic web may be the next major AI Web 2.0 breakthrough in the internet. Semantic network is a form or knowledge representation.