Martin Kruliš 14. 1. 2016 by Martin Kruliš (v1.1)1.

Slides:



Advertisements
Similar presentations
DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
Advertisements

1/7 ITApplications XML Module Session 8: Introduction to Programming with XML.
XML: Extensible Markup Language
XML Technology in E-Commerce
XML & Data Structures for the Internet Yingcai Xiao.
XML Unit 6 October 31. XML, review XML is used to markup data Used to describe information Uses tags like HTML –But all tags are user-defined –Must be.
Introduction XML Technologies Mark Graves. This presentation is Copyright 2001, 2002 by Mark Graves and contains material Copyright 2002 by Prentice Hall.
XML Technologies and Applications Rajshekhar Sunderraman Department of Computer Science Georgia State University Atlanta, GA 30302
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application.
1 COS 425: Database and Information Management Systems XML and information exchange.
XML –Query Languages, Extracting from Relational Databases ADVANCED DATABASES Khawaja Mohiuddin Assistant Professor Department of Computer Sciences Bahria.
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.
10/06/041 XSLT: crash course or Programming Language Design Principle XSLT-intro.ppt 10, Jun, 2004.
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.
1 XML at a neighborhood university near you Innovation 2005 September 16, 2005 Kwok-Bun Yue University of Houston-Clear Lake.
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.
TDDD43 XML and RDF Slides based on slides by Lena Strömbäck and Fang Wei-Kleiner 1.
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.
Another PillowTalk Presentation  2004 Dynamic Systems, Inc. Introduction to XML for SOA Lee H. Burstein,
 2003 Prentice Hall, Inc. All rights reserved. Chapter 20 – Extensible Markup Language (XML) Outline 20.1 Introduction 20.2 Structuring Data 20.3 XML.
XML Overview. Chapter 8 © 2011 Pearson Education 2 Extensible Markup Language (XML) A text-based markup language (like HTML) A text-based markup language.
Representing Web Data: XML CSI 3140 WWW Structures, Techniques and Standards.
XHTML,XML M.Abdullah Mrian. What is the XHTML Why XHTML ?
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.
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.
JSTL, XML and XSLT An introduction to JSP Standard Tag Library and XML/XSLT transformation for Web layout.
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.
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.
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.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C - The World Wide Web Consortium W3C - The World Wide Web Consortium.
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: Extensible Markup Language
Unit 4 Representing Web Data: XML
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
Chapter X IXXXXXXXXXXXXXXXX.
XML Data Introduction, Well-formed XML.
More Sample XML By Sadia Anjum.
More XML XML schema, XPATH, XSLT
Presentation transcript:

Martin Kruliš by Martin Kruliš (v1.1)1

 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.1)2

Karel Novák Jane Doe by Martin Kruliš (v1.1)3

 Document Structure ◦ 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.1)4

 Document Schema ◦ DTD  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 by Martin Kruliš (v1.1)5

 Simple API for XML (SAX) ◦ 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.1)6

 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 by Martin Kruliš (v1.1)7 Selects elements bar, which are direct children of those elements foo, which have attribute id

by Martin Kruliš (v1.1)8 self attributechild parent namespace ancestor descendant descendant-or-self following-sibling preceding-sibling preceding following

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

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

 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 by Martin Kruliš (v1.1)11 Example 1

 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.1)12

 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.1)13 Example

 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.1)14

by Martin Kruliš (v1.1)15