XML in Web Technologies

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

DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
1/7 ITApplications XML Module Session 8: Introduction to Programming with XML.
XML: Extensible Markup Language
XML & Data Structures for the Internet Yingcai Xiao.
1 COS 425: Database and Information Management Systems XML and information exchange.
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.
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
1 Advanced Topics XML and Databases. 2 XML u Overview u Structure of XML Data –XML Document Type Definition DTD –Namespaces –XML Schema u Query and Transformation.
MC 365 – Software Engineering Presented by: John Ristuccia Shawn Posts Ndi Sampson XSLT Introduction BCi.
Chapter 13 XML Concept of XML Simple Example of XML XML vs. HTML in Syntax XML Structure DTD and CDATA Sections Concept of SAX Processing Download and.
PHP and XML TP2653 Advance Web Programming. PHP and XML PHP5 – XML-based extensions, library and functionalities (current XAMPP PHP version is )
Aalborg University – Department of Production XML Extensible Markup Language Kaj A. Jørgensen Aalborg University, Department of Production XML – Extensible.
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 XML eXtensible – add to language. Markup – delimit info using tags. Language – a way to express info.
Scientific Markup Languages Birds of a Feather A 10-Minute Introduction to XML Timothy W. Cole Mathematics Librarian & Professor of.
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 and XPath. Web Services: XML+XPath2 EXtensible Markup Language (XML) a W3C standard to complement HTML A markup language much like HTML origins: structured.
School of Computing and Management Sciences © Sheffield Hallam University To understand the Oracle XML notes you need to have an understanding of all these.
Representing Web Data: XML CSI 3140 WWW Structures, Techniques and Standards.
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.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 20 – Extensible Markup Language (XML) Outline 20.1 Introduction 20.2 Structuring Data 20.3 XML.
 2003 Prentice Hall, Inc. All rights reserved. 3 rd Edition Slide 1 Chapter 20 – Extensible Markup Language (XML) Outline 20.1 Introduction 20.2 Structuring.
XML Overview. Chapter 8 © 2011 Pearson Education 2 Extensible Markup Language (XML) A text-based markup language (like HTML) A text-based markup language.
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.
Representing Web Data: XML CSI 3140 WWW Structures, Techniques and Standards.
Advanced Java Session 9 New York University School of Continuing and Professional Studies.
 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.
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.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter X IXXXXXXXXXX XXXXXX.
Presentation Topic: XML and ASP Presented by Yanzhi Zhang.
XML – An Introduction Structured Data Mark-up James McCartney CSCE 590, Cluster and Grid Computing.
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.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Scripting with the DOM Ellen Pearlman Eileen Mullin Programming the Web.
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 Name: Niki Sardjono Class: CS 157A Instructor : Prof. S. M. Lee.
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.
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.
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 –
Computing & Information Sciences Kansas State University Friday, 20 Oct 2006CIS 560: Database System Concepts Lecture 24 of 42 Friday, 20 October 2006.
University of Nottingham School of Computer Science & Information Technology Introduction to XML 2. XSLT Tim Brailsford.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
©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.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
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.
I Copyright © 2004, Oracle. All rights reserved. Introduction.
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: Extensible Markup Language
Unit 4 Representing Web Data: XML
Java XML IS
Database Processing with XML
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Chapter 7 Representing Web Data: XML
Chapter X IXXXXXXXXXXXXXXXX.
More Sample XML By Sadia Anjum.
Chapter 20 – Extensible Markup Language (XML)
More XML XML schema, XPATH, XSLT
Extensible Markup Language (XML)
Presentation transcript:

XML in Web Technologies Martin Kruliš by Martin Kruliš (v1.2) 05.12.2016

XML eXtensible Markup Language Universal format for semistructured data Plain text interleaved with XML markup Designed for structural (tree-like) data The structure of a document can be specified By a grammar (schema) designed by the author of the application Tools and libraries for XML processing Parsing and construction (SAX, DOM) Searching (XPath, XQuery) Transformations by Martin Kruliš (v1.2) 05.12.2016

XML Sample <?xml version="1.0" encoding="utf-8"?> <addressbook> <person id="1"> <name>Karel</name> <surname>Novák</surname> <email>karel.novak@centrum.cz</email> </person> <person id="2"> <name>Jane</name> <surname>Doe</surname> <email>jane.doe@coldmail.com</email> </addressbook> Note that XML syntax is similar to HTML as they both origin from SGML. However, XML format is more strict (case sensitive, all tags must be paired, attribute values must be quoted, …). by Martin Kruliš (v1.2) 05.12.2016

XML Validation Document Structure Document Semantics XML document is well formed if it conforms to XML specification (tag syntax) Well formed documents can be parsed correctly Document Semantics XML document is valid (with respect to given schema) if its structure can be derived from the grammar specified in the schema Validation can be performed by existing tools, which are also integrated in parsers by Martin Kruliš (v1.2) 05.12.2016

XML Validation Document Schema DTD XML Schema Simple schema syntax embedded in XML specification Defines only the document (elements) structure No constraints for textual data Could be included in XML document XML Schema More robust language, more features Schema definition is also a XML document Supported by most parsers There are also other languages for specifying XML schema (Relax, Relax NG, Schematron, …); however, they are not widely used (at least not on the web). Example 1 by Martin Kruliš (v1.2) 05.12.2016

Parsing Simple API for XML (SAX) Document Object Model (DOM) Processes document sequentially Reports important events in sequential processing Opening and closing tags, found attributes, text, … For one-way or streaming processing Document Object Model (DOM) Similar API to HTML DOM Entire object is loaded in a object tree structure For modifications, transformations, … by Martin Kruliš (v1.2) 05.12.2016

XPath XPath Query language for XML documents Reflects the tree-based structure of the data and operates on sets of nodes Each query is a sequence of steps, each step takes set of nodes and produces another set Also contains filtering predicates and basic set of functions (arithmetics, logical and string fncs, …) /descendant::foo[attribute::id]/child::bar Selects elements bar, which are direct children of those elements foo, which have attribute id by Martin Kruliš (v1.2) 05.12.2016

XPath Axes preceding ancestor parent following-sibling preceding-sibling self following namespace child attribute descendant descendant-or-self by Martin Kruliš (v1.2) 05.12.2016

(XML, HTML, or plain text) Presenting XML Extensible Stylesheet Language (XSL) XSL = XSLT + XSL-FO (+ XPath) XSLT – transformation language XSL-FO – set of formatted objects XSLT XML document XSLT processor The result (XML, HTML, or plain text) by Martin Kruliš (v1.2) 05.12.2016

Presenting XML plain text JSON data … HTML document XML document Browser XSL-FO document XSLT processor XSL formatter PDF XSLT šablona XSLT template TeX source code TeX by Martin Kruliš (v1.2) 05.12.2016

XSLT XSL Transformations Language that specifies transformation templates The template is also an XML The templates… Use XPath to select parts of the transformed XML document Each part is then transformed using given rules The result of an XML transformation is either XML document, HTML document, or plain text The language is Turing complete Example 2 by Martin Kruliš (v1.2) 05.12.2016

AJAX Asynchronous Javascript and XML XML is used as universal format for transferring data (usually from server to client) Can be parsed using DOM API in Javascript Has been replaced by JSON in most cases XML advantages over JSON Document validation XPath searching XSLT transformations by Martin Kruliš (v1.2) 05.12.2016

Web Services Web Services Set of standards for remote method invocation Simple Object Access Protocol (SOAP) XML based protocol for data marshaling SOAP messages are transferred via HTTP Web Service Description Language (WSDL) Interface definition language that specifies the details of a web service (operations, message format, …) Universal Description, Discovery & Integration (UDDI) Registry for web services Operates also as a web service by Martin Kruliš (v1.2) 05.12.2016

XML Applications XML Applications on the Web Data exchange and application integration Universal nature of the XML makes it perfect candidate for situations, when separate subjects need to exchange data or integrate functionality Simple storage for tree-shaped data If a relational database does not fit your problem XML data can be easily visualized by XSLT Special cases Application configuration … by Martin Kruliš (v1.2) 05.12.2016

Discussion by Martin Kruliš (v1.2) 05.12.2016