XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski.

Slides:



Advertisements
Similar presentations
XML-XSL Introduction SHIJU RAJAN SHIJU RAJAN Outline Brief Overview Brief Overview What is XML? What is XML? Well Formed XML Well Formed XML Tag Name.
Advertisements

CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
What is XML? a meta language that allows you to create and format your own document markups a method for putting structured data into a text file; these.
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.
History Leading to XHTML
Tutorial 9 Working with XHTML
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
CSE 190: Internet E-Commerce Lecture 17: XML, XSL.
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
Creating a Well-Formed Valid Document. 2 Objectives Introducing XHTML Creating a Well-Formed Document Creating a Valid Document Creating an XHTML Document.
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.
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
COS 381 Day 16. Agenda Assignment 4 posted Due April 1 There was no resubmits of Assignment Capstone Progress report Due March 24 Today we will discuss.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Aalborg University – Department of Production XML Extensible Markup Language Kaj A. Jørgensen Aalborg University, Department of Production XML – Extensible.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 XML Taken from Chapter 7.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
XML eXtensible Markup Language by Darrell Payne. Experience Logicon / Sterling Federal C, C++, JavaScript/Jscript, Shell Script, Perl XML Training XML.
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.
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
XML BIS4430 – unit 10. XML Origins Extensible Markup Language (XML) 1998 Inspired by Standard Generalized Markup Language (SGML) and HTML. SGML defines.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
XML - Why: The HTML-Dilemma HTML, SGML, XML - How: Syntax, Concept, Language Elements Basics Well-formed XML-Documents (without DTD) Valid XML-Documents.
XML Basics Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Extensible Meta Language Markup Language.
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.
FIGIS’ML Hands-on training - © FAO/FIGIS An introduction to XML Objectives : –what is XML? –XML and HTML –XML documents structure well-formedness.
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
XML About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
Tutorial 1: XML Creating an XML Document. 2 Introducing XML XML stands for Extensible Markup Language. A markup language specifies the structure and content.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter X IXXXXXXXXXX XXXXXX.
Presentation Topic: XML and ASP Presented by Yanzhi Zhang.
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
CP3024 Lecture 9 XML: Extensible Markup Language.
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.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
1 Introduction to XML XML stands for Extensible Markup Language. Because it is extensible, XML has been used to create a wide variety of different markup.
XML Design Goals 1.XML must be easily usable over the Internet 2.XML must support a wide variety of applications 3.XML must be compatible with SGML 4.It.
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 Basics A brief introduction to XML in general 1XML Basics.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
1 Indexing The syntax for creating a index is: CREATE [UNIQUE] INDEX index_name ON table_name (column1, column2,... column_n) [ COMPUTE STATISTICS ]; Why.
Jon Bosak, Sun Microsystems Last revised XML, Java, and the future of the Web Presented and Annotated by Byung-Hoon Kang
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.
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 –
+ 1 XML eXtensible Markup Language. + 2 XML Lecture Adapted from the work of Dr. Praveen Madiraju of Marquette University.
SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson LIS1510 Library and Archives Automation Issues XML and extensible systems Andy Dawson School.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
XML Technology. Emerging Importance of XML –HTML-tagging is display oriented. –XML-based content tagging has important uses: data mining role-oriented.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
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.
 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.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
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.
1 XML eXtensible Markup Language. 2 Introduction and Motivation Dr. Praveen Madiraju Modified from Dr.Sagiv’s slides.
Beyond HTML: Extensible Markup Language (XML)
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.
Unit 4 Representing Web Data: XML
Chapter 7 Representing Web Data: XML
Presentation transcript:

XML – Extensible Markup Language Sivakumar Kuttuva & Janusz Zalewski

What is XML? Extensible Markup Language (XML) is a universal standard for electronic data exchange Provides a method of creating and using tags to identify the structure and contents of a document ignoring the formatting

How XML look like //Root Tag Java Programming //Element Course Name EECS //Element Dept Paul Ron Uma Lindsay

Why XML came into existence?(1) Make it easier to provide metadata -- data about information EECS Paul Thompson Here Name, Department are Metadata Large-scale electronic publishing requires dynamic documents without changing document formats. Internationalized media-independent electronic publishing.

Why XML came into existence? (2) Allow industries to define platform- independent protocols for the exchange of data, especially the data of electronic commerce. Make it easy for people to process data using inexpensive software.

Two Types of Syntax Standards XML documents must meet one of two syntax standards: –Well-formed (the basic standard) Document must meet minimum, standard criteria. –Valid Document must be well-formed and adhere to a DTD (Document Type Definition).

Well-Formed XML –Well-formed criteria include: All elements have a start and end tag with matching capitalization. – Proper element nesting. – – not Attribute values are in single or double quotes. – Empty elements need an end or closed start tag. – or

Why Well-Formed Matters Guarantees the document’s syntax before sending it to an application. A clean syntax guarantee which means less ambiguity which results in faster processing. A well-formed violation is a fatal error.

Valid XML To be valid, a document must be well- formed and adhere to a DTD. A DTD Example is shown below –

Valid XML DTD - Document Type Definition specifies: – Elements in the document. Author, Publisher – Their attributes. For Book Author, Publisher, Price are attributes – Whether they are mandatory or optional A DTD effectively specifies the document’s grammatical rules.

A sample entry in the XML file adhering to the given DTD C++ Primer Tendulkar McGraw Hill 41.99

Why use DTD Well-formed means the document meets a minimum standard set of rules. A DTD helps to define user defined rules and languages provided the XML content adheres to the syntax standards like WML, MAML, etc.

The Components – Line 1 Bookcatalog is the root element. Bookcatalog can have one or more (indicated by the +) Book elements.

The Components – Line 2 Each Book element can contain: A title, author, publisher, price

The Components – Line 4 <!ATTLIST Book BookType (Fiction | SciFi | Nonfiction) Fiction. Each Book element has a attribute BookType Three options (indicated by |) Fiction, SciFi and Non-Fiction with Fiction as default.

The Components – Lines 5-9 The Remaining Elements Title through Price are #PCDATA –Parseable character data that the processor will check for entities and markup characters –Any, or & in data specified as PCDATA must be represented by < or > or &.

Schemas The next step beyond DTDs Come from the database world More powerful and extensible than DTDs, which come from the SGML world Schemas are XML documents, so they: –Are extensible –Use XML syntax unlike DTDs –Support data types like dates, times, currencies, important in eCommerce

DTDs vs Schemas Why use schemas? –More powerful than DTDs –Better suited for eCommerce. Why use DTDs? –Wider tool support. –More examples available for use and reference. HTML, XHTML, CALS, etc. –Greater depth of experience in the industry –Wider pool of developers

CSS and XML CSS was designed for HTML but works fine under XML as well. Rather than create an XSL style sheet, you can create a simpler CSS and attach it to a XML document via a command like: –{?xml-stylesheet href=“mycss.css” type=“text/css”?}

CSS and XSL XML uses custom tags that a browser does not know how to display So XML documents may display like this – – – C++ Primer – Tendulkar – McGraw Hill – – Legibility requires applying styles: – CSS – XSL

XSL (Extensible Style Language) XSL comes from DSSSL (Document Style Semantics and Specification Language), the SGML style language, derived from LISP.

Benefits of XSL An XSL style sheet is well-formed XML. Supports a style sheet DTD for validation. Far greater processing ability than CSS. XSL Transformations (XSLT) take part of an XML document and transform it, such as XML to HTML. – This is why XML appears to be the route to single-sourcing.

Advanced Features of XML Xlink Xpointer Parsing XML with DOM (Document Object Model) XPath

XML Applications Applications that require the Web client to mediate between two or more heterogeneous databases like information tracking system for a home health care agency. Applications that attempt to distribute a significant proportion of the processing load from the Web server to the Web client like technical data delivery system for a wide range of products. Applications that require the Web client to present different views of the same data to different users. Applications in which intelligent Web agents attempt to tailor information discovery to the needs of individual users.

Future Demands of XML Intelligent Web agents would have demand for structured data User preferences must be represented in a standard way to mass media providers.