XML. Jonathan Geisler. April 18, 2008

Similar documents
The XML Metalanguage

COMP9321 Web Application Engineering

Copyright 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Chapter 7 XML

Introduction to XML. XML: basic elements

Comp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward

XML. Objectives. Duration. Audience. Pre-Requisites

XML: Introduction. !important Declaration... 9:11 #FIXED... 7:5 #IMPLIED... 7:5 #REQUIRED... Directive... 9:11

7.1 Introduction. extensible Markup Language Developed from SGML A meta-markup language Deficiencies of HTML and SGML

Delivery Options: Attend face-to-face in the classroom or via remote-live attendance.

Comp 336/436 - Markup Languages. Fall Semester Week 4. Dr Nick Hayward

Delivery Options: Attend face-to-face in the classroom or remote-live attendance.

Intro to XML. Borrowed, with author s permission, from:

W3C XML XML Overview

Data Presentation and Markup Languages

CSI 3140 WWW Structures, Techniques and Standards. Representing Web Data: XML

Chapter 1: Getting Started. You will learn:

Introduction to XML. Asst. Prof. Dr. Kanda Runapongsa Saikaew Dept. of Computer Engineering Khon Kaen University

COMP9321 Web Application Engineering

The concept of DTD. DTD(Document Type Definition) Why we need DTD

COMP9321 Web Application Engineering. Extensible Markup Language (XML)

Introduction to XML 3/14/12. Introduction to XML

XML Processing & Web Services. Husni Husni.trunojoyo.ac.id

.. Cal Poly CPE/CSC 366: Database Modeling, Design and Implementation Alexander Dekhtyar..

Markup Languages SGML, HTML, XML, XHTML. CS 431 February 13, 2006 Carl Lagoze Cornell University

AIM. 10 September

XML: Managing with the Java Platform

Chapter 13 XML: Extensible Markup Language

CSC Web Technologies, Spring Web Data Exchange Formats

Data Exchange. Hyper-Text Markup Language. Contents: HTML Sample. HTML Motivation. Cascading Style Sheets (CSS) Problems w/html

Shankersinh Vaghela Bapu Institue of Technology

XML: Extensible Markup Language

Introduction to Semistructured Data and XML. Overview. How the Web is Today. Based on slides by Dan Suciu University of Washington

XML Applications. Prof. Andrea Omicini DEIS, Ingegneria Due Alma Mater Studiorum, Università di Bologna a Cesena

B.V.Patel Institute of Business Management, Computer & Information Technology, UTU

Extensible Markup Language (XML) Hamid Zarrabi-Zadeh Web Programming Fall 2013

XML Extensible Markup Language

User Interaction: XML and JSON

XML: some structural principles

M359 Block5 - Lecture12 Eng/ Waleed Omar

Processing XML and JSON in Python

Manipulating XML Trees XPath and XSLT. CS 431 February 18, 2008 Carl Lagoze Cornell University

User Interaction: XML and JSON

XML. extensible Markup Language. ... and its usefulness for linguists

Chapter 2 XML, XML Schema, XSLT, and XPath

Time: 3 hours. Full Marks: 70. The figures in the margin indicate full marks. Answer from all the Groups as directed. Group A.

Read & Download (PDF Kindle) XML For Dummies

Lesson 14 SOA with REST (Part I)

IT2353 WEB TECHNOLOGY Question Bank UNIT I 1. What is the difference between node and host? 2. What is the purpose of routers? 3. Define protocol. 4.

What is XML? XML is designed to transport and store data.

1.264 Lecture 13 XML

Web Programming Paper Solution (Chapter wise)

SRI VIDYA COLLEGE OF ENGINEERING & TECHNOLOGY- VIRUDHUNAGAR

Intro to XML. An Introduction to extensible Markup Language

XML Overview, part 1

Editing ReqIF-XHTML fragments with Writer

Agenda. XML Generics. XML for Java Developers G Session 1 - Main Theme Markup Language Technologies (Part I)

Introduction to JSON. Roger Lacroix MQ Technical Conference v

Introduction to XML the Language of Web Services

XML & Related Languages

PASS4TEST. IT Certification Guaranteed, The Easy Way! We offer free update service for one year

11. EXTENSIBLE MARKUP LANGUAGE (XML)

markup language carry data define your own tags self-descriptive W3C Recommendation

XML Technologies Dissected Erik Wilde Swiss Federal Institute of Technology, Zürich

HTML is a mark-up language, in that it specifies the roles the different parts of the document are to play.

COPYRIGHTED MATERIAL. Contents. Part I: Introduction 1. Chapter 1: What Is XML? 3. Chapter 2: Well-Formed XML 23. Acknowledgments

XML Primer Plus By Nicholas Chase

KINGS COLLEGE OF ENGINEERING 1

XML Metadata Standards and Topic Maps

TagSoup: A SAX parser in Java for nasty, ugly HTML. John Cowan

IT6503 WEB PROGRAMMING. Unit-I

Programming the World Wide Web by Robert W. Sebesta

XML. Rodrigo García Carmona Universidad San Pablo-CEU Escuela Politécnica Superior

1. Please, please, please look at the style sheets job aid that I sent to you some time ago in conjunction with this document.

Semistructured data, XML, DTDs

Jdom Interest Schema Validation Example

- XML. - DTDs - XML Schema - XSLT. Web Services. - Well-formedness is a REQUIRED check on XML documents

Lecture 15: Frameworks for Application-layer Communications

Lecture 15: Frameworks for Application-layer Communications

Govt. of Karnataka, Department of Technical Education Diploma in Computer Science & Engineering. Fifth Semester. Subject: Web Programming

Alpha College of Engineering and Technology. Question Bank

Birkbeck (University of London)

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

Introduction to XML (Extensible Markup Language)

CS6501 IP Unit IV Page 1

Chapter 10: Understanding the Standards

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 27-1

Well-formed XML Documents

XML. Presented by : Guerreiro João Thanh Truong Cong

DocBook vs DITA. Radu

Expressing Internationalization and Localization information in XML

Structured documents

INFO/CS 4302 Web Informa6on Systems

Lesson 12: JavaScript and AJAX

INFO/CS 4302 Web Informa6on Systems

Web Computing. Revision Notes

Extreme Java G Session 3 - Sub-Topic 5 XML Information Rendering. Dr. Jean-Claude Franchitti

Table of Contents WWW. WWW history (2) WWW history (1) WWW history. Basic concepts. World Wide Web Aka The Internet. Client side.

XML: and related technologies

COPYRIGHTED MATERIAL. What Is XML? Of Data, Files, and Text

Advanced Web Tutorial 1 Editor Brackets / Visual Code

Transcription:

April 18, 2008

What is? IS...

What is? IS... Text (portable)

What is? IS... Text (portable) Markup (human readable)

What is? IS... Text (portable) Markup (human readable) Extensible (valuable for future)

What is? IS... Text (portable) Markup (human readable) Extensible (valuable for future) is NOT a...

What is? IS... Text (portable) Markup (human readable) Extensible (valuable for future) is NOT a... Programming language

What is? IS... Text (portable) Markup (human readable) Extensible (valuable for future) is NOT a... Programming language Transport protocol

What is? IS... Text (portable) Markup (human readable) Extensible (valuable for future) is NOT a... Programming language Transport protocol Database

Why did they make? HTML is too restrictive SGML is too complicated

Syntax Very much like HTML Every start tag must have an end tag Elements may not overlap Attribute values must be quoted No duplicate attributes No comments inside tags No unescaped < or & signs

Valid vs. Well-formed Well-formed means the document is acceptable Valid means the document contains acceptable tags for the application domain

Parts of Elements Tags Character Data Attributes Entities

Document Type Definition (DTD) DTDs define what you really want for your content. You describe what a valid document consists of and any ordering that might be necessary.

Namespaces Since is extensible by any, how can we ensure that no one else uses the same tag as us? Namespaces!

Namespaces Since is extensible by any, how can we ensure that no one else uses the same tag as us? Namespaces!

Schemas But DTDs are hard... Let s use to define our! We ll be able to be more specific with our specifications and not have to learn a new syntax. The book gives a nice intro, but to master it, you would want to get a reference that goes into more detail.

CSS with Use CSS on the same way you did for XHTML since it is just one type of document. Nothing is special here...

XSLT extensible Stylesheet Language Transforms can powerfully transform an document to some other document. That could be another document, an XHTML document, or even an MS Word document.

XPath In order to access various parts of our document to perform transformations we need a method for referring to the different parts. Think of this like the DOM for Javascript except much more powerful.

Very basics for XPath To specify how to find the document element, we need three basic concepts: 1 Direction to search (XPath has the concept of a current node in the document to search from) 2 Node to test for matching 3 Filtering of matches The combination of all three makes an XPath look a lot like a path in a URL or file system.

XPath examples 1 /A/B/C

XPath examples 1 /A/B/C 2 A/B/C

XPath examples 1 /A/B/C 2 A/B/C 3 //A//B//C

XPath examples 1 /A/B/C 2 A/B/C 3 //A//B//C 4 /A/*

XPath examples 1 /A/B/C 2 A/B/C 3 //A//B//C 4 /A/* 5 /A/@att

XPath examples 1 /A/B/C 2 A/B/C 3 //A//B//C 4 /A/* 5 /A/@att 6 /A[@att]

XSLT examples We re going to look at some online examples rather than trying to reproduce them here. They come from http://zvon.org/xxl/xsltutorial/output/contents.html.

DOM vs. SAX We can either have the entire document to work with (DOM) or just the elements we need to process (SAX). Each has benefits depending on the type you want to do. The DOM is familiar to you since you ve already used it with Javascript. SAX will become more familiar to you as you work with events in Javascript, since it is essentially an event-based framework for parsing the document.