XML & Data Structures for the Internet Yingcai Xiao.

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

Intesar G Ali IT DepartmentPalestinian Land Authority Web services Prepared by: Intesar Ali IT Department PLA August 2010.
XML: Extensible Markup Language
Introducing XML : Table of Contents 1. From HTML to XML 2. Well-Formed XML 3. Validity / DTDs 4. Encodings 5. XML Namespaces 6. XML Schema 7. XML Tools.
XML and Enterprise Computing. What is XML? Stands for “Extensible Markup Language” –similar to SGML and HTML –document “tags” are used to define content.
Standards and Increasing Maintainability on Web- based Systems James Eaton SE4112/16/2006.
XML: Styling and Transformation Dr Andy Evans. Multiple views Nice thing is that this data can be styled in lots of different ways using stylesheets.
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
Web Services Darshan R. Kapadia Gregor von Laszewski 1http://grid.rit.edu.
Chapter 13 XML Yingcai Xiao. What is XML? What is it for? Examples How to write? How to validate? How to read? How to display? How to format? How to translate?
1 CP3024 Lecture 9 XML revisited, XSL, XSLT, XPath, XSL Formatting Objects.
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
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application.
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.
W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application with a clean migration path from HTML 4.01 CSS: Style sheets.
Aalborg University – Department of Production XML Extensible Markup Language Kaj A. Jørgensen Aalborg University, Department of Production XML – Extensible.
ECA 228 Internet/Intranet Design I Intro to XSL. ECA 228 Internet/Intranet Design I XSL basics W3C standards for stylesheets – CSS – XSL: Extensible Markup.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
1 XML at a neighborhood university near you Innovation 2005 September 16, 2005 Kwok-Bun Yue University of Houston-Clear Lake.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
XML: Overview MIS 181.9: Service Oriented Architecture 2 nd Semester,
XML and its applications: 4. Processing XML using PHP.
School of Computing and Management Sciences © Sheffield Hallam University To understand the Oracle XML notes you need to have an understanding of all these.
XML eXtensible Markup Language w3c standard Why? Store and transport data Easy data exchange Create more languages WSDL (Web Service Description Language)
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.
Another PillowTalk Presentation  2004 Dynamic Systems, Inc. Introduction to XML for SOA Lee H. Burstein,
XML Overview. Chapter 8 © 2011 Pearson Education 2 Extensible Markup Language (XML) A text-based markup language (like HTML) A text-based markup language.
XML What is XML? XML v.s. HTML XML Components Well-formed and Valid Document Type Definition (DTD) Extensible Style Language (XSL) SAX and DOM.
XHTML,XML M.Abdullah Mrian. What is the XHTML Why XHTML ?
Introduction to XML Extensible Markup Language. What is XML XML stands for eXtensible Markup Language. A markup language is used to provide information.
 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,
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
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.
WEB BASED DATA TRANSFORMATION USING XML, JAVA Group members: Darius Balarashti & Matt Smith.
Windows Presentation Foundation (WPF) Chapter 16 Dr. Abraham.
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.
School of Computing and Information Systems CS 371 Web Application Programming XML and JSON Encoding Data.
XML Basics A brief introduction to XML in general 1XML Basics.
Jennifer Widom XML Data Introduction, Well-formed XML.
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.
Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C - The World Wide Web Consortium W3C - The World Wide Web Consortium.
Martin Kruliš by Martin Kruliš (v1.1)1.
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.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
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.
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
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.
Unit 4 Representing Web Data: XML
XML Related Technologies
XML in Web Technologies
Database Processing with XML
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Chapter 7 Representing Web Data: XML
XML Data Introduction, Well-formed XML.
More Sample XML By Sadia Anjum.
Chapter 13 XML Yingcai Xiao.
XML and its applications: 4. Processing XML using PHP
Unit 6 - XML Transformations
Presentation transcript:

XML & Data Structures for the Internet Yingcai Xiao

What is XML? What is it for? Examples How to write? How to validate? How to read? How to display? How to format? How to translate?

A Common Language for the Internet (free of compilation and translation)?

A Common Language for the Internet Tim Berners-Lee ASCII text (ISO/IEC ) is platform-independent. HTTP (Hyper Text Transport Protocol) e.g. GET wp.html Assembly Language for the Internet HTML (Hyper Text Markup Language) High-level language for the Internet) hyper text: text that describes other text tags: type definition of text in text WP all tags are predefined in HTML only system defined types, no user defined types Recognizable by all types of computers. (World Wide Web)

A Common Language for the Internet  XML (eXtensible Markup Language) Allow user defined tags (types)  SOAP (Simple Object Access Protocol) Standards for defining objects for the Internet Based on XML  WSDL (Web Service Description Language) Standards for describing web services for the Internet Based on XML

(XML) Web Services Proxy of Interface 2 Client 2 Application 1 UDDI Registry 1 WSDL Interface 1 UDDI Registry 2 Application 2WSDL Interface 2 SOAP WEB Proxy of Interface 1 Client 1 A Web service is an application that exposes Web methods over the Web.

. What is XML?

 Extensible Markup Language.  De facto data language for the Internet.  HTML expresses appearance; XML describes data and its structure.  Text based (platform-independent).  Object-oriented data representation.  Has no predefined tags.  Provides rules to format data.. XML

XML Example (Guitars.xml) Gibson SG 1977 Tobacco Sunburst Rosewood Fender Stratocaster Black Maple

XML Example (Guitars.xml)  Document element (root): Guitars.  Guitar elements are children of Guitars.  Make contain data.  Empty element:  Nested elements.  The content of an XML document can be viewed as a tree.  Attributes

. How to define an XML data structure?

XML Description  XML Elements: text-based object-oriented data (object)  Error checking?  Text-based object-oriented type (class) definition?  Early days: document type definitions (DTDs).  Today: XML Schema Definitions (XSDs).  Schema: a collection of meta data.  Meta data: data that describes data.  XSD is an XML-based language for describing XML documents and the types that they contain.

Example: Guitars.xsd

. How to validate XML data?

Examples\c13\Validate\ Typo => xsd:Year should be xsd:string run.bat Validate Guitars.xml Guitars.xsd run-bad-xml.bat Validate Guitars-Missing-Make.xml Guitars.xsd Example: Guitars.xsd

. How to read XML data?

XML Parsers  Most XML parsers implement one of two popular APIs: DOM or SAX.  DOM: Document Object Model Level-2-Core.  SAX: Simple API for XML, unofficial,  Examples of using XmlDocument: Validate ReadXml XmlView Transform Quotes ExpressAnalyzer

ReadXml.cs (also see XmlView) using System; using System.Xml; class MyApp { static void Main () { XmlDocument doc = new XmlDocument (); doc.Load ("Guitars.xml"); XmlNodeList nodes = doc.GetElementsByTagName ("Guitar"); foreach (XmlNode node in nodes) { Console.WriteLine(“Maker {0}; Model {1}", node["Make"].InnerText, node["Model"].InnerText); }

 XML Path Language  For addressing parts of an XML document.  “/Guitars/Guitar” is an XPath expression.  XPath

. How to display XML data with styles?

XSL is a language for expressing style sheets. Adopted from CSS, a file that describes how to display an XML document of a given type.CSS Styling requires a source XML documents, containing the information that the style sheet will display and the style sheet itself which describes how to display a document of a given type. It supports: Formatting Objects. It also adds a transformation language for XML documents: XSLT. Example: XML\Quotes\Quotes.xsl tes/quotes.aspx/ XSL

. How to translate XML into other languages?

 Extensible Stylesheet Language Transformations.  Converting XML documents into HTML documents.  Converting HTML documents into other XML documents.  Example XML\Transform\Transform.cs XSL Transformations (XSLT)

How to Program the Internet? (Write code that runs on the Internet) Web Service & Cloud Computing