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 –

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.
XML Schema Heewon Lee. Contents 1. Introduction 2. Concepts 3. Example 4. Conclusion.
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.
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
Tutorial 9 Working with XHTML
INF201 Fall2010 Intro. to Info. Technologies Department of Informatics University at Albany – SUNY Original Source: w3schools.com Prepared by Xiao Liang,
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
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.
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
XML Introduction By Hongming Yu Feb 6 th, Index Markup Language: SGML, HTML, XML An XML example Why is XML important XML introduction XML applications.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Introduction to XML This material is based heavily on the tutorial by the same name at
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
E X TENSIBLE M ARKUP L ANGUAGE (XML). What is XML?  XML stands for EXtensible Markup Language  XML is mainly designed to carry (or transmit) data, not.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
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.
XML - DTD. The building blocks of XML documents Elements, Tags, Attributes, Entities, PCDATA, and CDATA.
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
1 © Netskills Quality Internet Training, University of Newcastle Introducing XML © Netskills, Quality Internet Training University.
Introduction to XML. What is XML? Extensible Markup Language XML Easier-to-use subset of SGML (Standard Generalized Markup Language) XML is a.
Lecture 13 – XML and JSON SFDV3011 – Advanced Web Development Reference: 1.
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.
These Questions are copied from
 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.
Session IV Chapter 9 – XML Schemas
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
Weekend MS CS Program Internet and Web Technologies COT 5930 Web Project Development - Ajax Dr. Roy Levow, Associate Chair & Professor
How do I use HTML and XML to present information?.
Presentation Topic: XML and ASP Presented by Yanzhi Zhang.
XML eXtensible Markup Language. Topics  What is XML  An XML example  Why is XML important  XML introduction  XML applications  XML support CSEB.
XML – An Introduction Structured Data Mark-up James McCartney CSCE 590, Cluster and Grid Computing.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
1 Dr Alexiei Dingli XML Technologies XML. 2 XML stands for EXtensible Markup Language XML is a markup language much like HTML XML was designed to carry.
Waqas Anwar Next SlidePrevious Slide. Waqas Anwar Next SlidePrevious Slide XML XML stands for 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.
XML EXtensible Markup Language. Agenda Introduction to XML XML Rules XML Elements XML Attributes XML Validation XML Exercises XML Namespaces XML CDATA.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
CHAPTER 15 WPF Windows Presentation Foundation Dr. John Abraham Professor, UTPA.
XML Presented by Kushan Athukorala. 2 Agenda XML Overview Entity References Elements vs. Atributes XML Validation DTD XML Schema Linking XML and CSS XSLT.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Martin Kruliš by Martin Kruliš (v1.1)1.
Dave Salinas. What is XML? XML stands for eXtensible Markup Language Markup language, like HTML HTML was designed to display data, whereas XML was designed.
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.
 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:
Tutorial 9 Working with XHTML. XP Objectives Describe the history and theory of XHTML Understand the rules for creating valid XHTML documents Apply a.
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 Introduction to XML Babak Esfandiari. 2 What is XML? introduced by W3C in 98 Stands for eXtensible Markup Language it is more general than HTML, but.
Extensible Markup Language (XML) Pat Morin COMP 2405.
XML intro. 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.
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
Tutorial 9 Working with XHTML
Tutorial 9 Working with XHTML
XML in Web Technologies
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Chapter 7 Representing Web Data: XML
Tutorial 9 Working with XHTML
XML Data Introduction, Well-formed XML.
Presentation transcript:

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 – Machines W3C XML 1.0 Specification Goals – Simplicity – Generability – Usability

XML Focuses on documents Can represent arbitrary data – Those used by web services Many document formats – RSS – Atom – SOAP (communication and web service protocol) – XHTML (similar to HTML) – Office Open XML – XMPP (communication protocol)

A little history 1986 – Standard Generalized Markup Language (SGML) 1998 – SGML is reworked into XML 2000 – XHTML 1.0 is released 2001 – XHTML 1.1 is released 2008 XML 1.0 standard is released 2015 HTML 5.0 is published as a non SGML language

Markup and content Markup text starts with – Example: Forms tags – Start tags » – End tags » – Empty-element tags » – & and ends with ; Example: & â Everything else is content

Elements and attributes Elements are logical document components which – start with a start tag and ends with an end tag, or – Consist of only an empty-element tag Attributes are name-value pairs within an element – Except the end element –

XML documents Declaration Elements Attributes Tove Jani Reminder Don't forget me this weekend!

XML characteristics All opened elements need to closed Case sensitive – is different from No shorthand features – Whereas in HTML we can write – In XHTML we must write On errors the parsing of a document stops

XML namespaces Element names are defined by the developer – This leads to confusion – Same element can have different meanings Solve conflicts using prefixes Prefixes require the definition of a namespace

CDATA Character data section – Specifies a section of content that is marked to be interpreted purely as textual data, and not markup – Avoids having encoded text which the parsers are not supposed to process – Example: John Smith ]]> Instead of <sender>John Smith</sender>

XHTML XHTML 1.0 is "a reformulation of the three HTML 4 document types as applications of XML 1.0“ XHTML was developed to make HTML more extensible and increase interoperability with other data formats – Compatibility with common XML tools, servers, and proxies – Extensibility by adding new features such as SVG and MathML all written in XML Through namespaces

XHTML and HTML Javascript and CSS is handled differently in XHTML Complex relationship

Validating XML DTD – Document Type Definition – Defines a standard for exchanging data – Example Clients ensure that the data they receive from the web server is valid XHTML – Defined using Example – XML Schema – XML alternative to DTD

DTD vs XML schemas XML Schemas are written in XML – You don't have to learn a new language – You can use your XML editor to edit your Schema files – You can use your XML parser to parse your Schema files – You can manipulate your Schemas with the XML DOM – You can transform your Schemas with XSLT XML Schemas are extensible to additions XML Schemas support data types – It is easier to describe document content – It is easier to define restrictions on data – It is easier to validate the correctness of data – It is easier to convert data between different data types XML Schemas support namespaces

An example DTD for the XML Schema for the XML

Transforming XML XSL – Extensible Stylesheet Language – Transform and render XML documents XSLT – Language for transforming XML documents XPath – Non-XML language used to address XML elements – Used from inside XSLT Example

What’s next? Javascript – State vs. stateless Dynamic HTML manipulation AJAX – Synchronous vs. asynchronous JQUERY Server side programming Web services