XML eXtensible Markup Language. Topics  What is XML  An XML example  Why is XML important  XML introduction  XML applications  XML support CSEB.

Slides:



Advertisements
Similar presentations
Chapter 7 An Introduction to XML.
Advertisements

XML INTRODUCTION Prepared by Hongming Yu Modified by Fernando Farfán.
XML Craig Stewart Dr. Alexandra I. Cristea
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
XML XML What XML is and what it means to me as a Computer Scientist By: Derek Edwards CS 376 March 10, 2003.
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
IS 373—Web Standards Todd Will
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
DECO 3002 Advanced Technology Integrated Design Computing Studio Tutorial 5 – XML Basic School of Architecture, Design Science and Planning Faculty of.
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
XML Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
Introduction to XML: Yong Choi CSU Bakersfield.
Upgrading to XHTML DECO 3001 Tutorial 1 – Part 1 Presented by Ji Soo Yoon 19 February 2004 Slides adopted from
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.
Introduction to XML Rashmi Kukanur. XML XML stands for Extensible Markup Language XML was designed to carry data XML and HTML designed with different.
Introduction to XML This material is based heavily on the tutorial by the same name at
Introduce of XML Xiaoling Song CS157A. What is XML? XML stands for EXtensible Markup Language XML stands for EXtensible Markup Language XML is a markup.
ECA 228 Internet/Intranet Design I Intro to XML. ECA 228 Internet/Intranet Design I HTML markup language very loose standards browsers adjust for non-standard.
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 Introduction to XML  Features of XML Features of XML  Syntax of XML Syntax of XML  Syntax rules of XML document Syntax rules.
_ HTML, XHTML & CSS Sami Niemelä | Module 1: Introduction to digital media: Day 02.
What is XML? XML stands for EXtensible Markup Language
CREATED BY ChanoknanChinnanon PanissaraUsanachote
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Pemrograman Berbasis WEB XML -Aurelio Rahmadian- Sumber: w3cschools.com.
XML eXtensible Markup Language w3c standard Why? Store and transport data Easy data exchange Create more languages WSDL (Web Service Description Language)
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
Introduction to XML 1. XML XML started out as a standard data exchange format for the Web Yet, it has quickly become the fundamental instrument in the.
XHTML,XML M.Abdullah Mrian. What is the XHTML Why XHTML ?
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,
XML About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
How do I use HTML and XML to present information?.
CSC 330 E-Commerce Teacher Ahmed Mumtaz Mustehsan Ahmed Mumtaz Mustehsan GM-IT CIIT Islamabad GM-IT CIIT Islamabad CIIT Virtual Campus, CIIT COMSATS Institute.
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.
CIS 275—Web App Dev I XML. 2 Introduction to XMLXML XML stands for ________________________. HTML was designed to display data. XML was designed to _________.
Windows Presentation Foundation (WPF) Chapter 16 Dr. Abraham.
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.
WEB APPLICATION DEVELOPMENT For More visit:
Consuming eXtensible Markup Language (XML) feeds.
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.
1 Credits Prepared by: Rajendra P. Srivastava Ernst & Young Professor University of Kansas Sponsored by: Ernst & Young, LLP (August 2005) XBRL Module Part.
An Introduction to XML Sandeep Bhattaram
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
What it is and how it works
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
XML Basics A brief introduction to XML in general 1XML Basics.
IS446: Internet Software Development Dr. Azeddine Chikh.
XML Presented by Kushan Athukorala. 2 Agenda XML Overview Entity References Elements vs. Atributes XML Validation DTD XML Schema Linking XML and CSS XSLT.
ASHIMA KALRA  INTRODUCTION OF XML INTRODUCTION OF XML  XML FEATURES XML FEATURES  XML SYNTAX XML SYNTAX  XML ELEMENTS XML ELEMENTS  XML ATTRIBUTES.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
IS444: Modern software development tools Dr. Azeddine Chikh.
XML. HTML Before you continue you should have a basic understanding of the following: HTML HTML was designed to display data and to focus on how data.
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.
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
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.
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.
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
XML Introduction By Hongming Yu Feb 6th, 2002.
Javascript & jQuery XML.
What is XML?.
Presentation transcript:

XML eXtensible Markup Language

Topics  What is XML  An XML example  Why is XML important  XML introduction  XML applications  XML support CSEB 124 Web Programming

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  XML tags are not predefined. You must define your own tags  XML is designed to be self-descriptive  XML is a W3C Recommendation CSEB 124 Web Programming

Difference between XML and HTML  XML was designed to carry data, not displaying data  XML is not a replacement for HTML.  Different goals: -XML was designed to describe data and to focus on what data is. -HTML was designed to display data and to focus on how data looks.  HTML is about displaying information, XML is about describing information. CSEB 124 Web Programming

How XML Can Be Used?  Plain Text -Easy to edit -Useful for storing small (compared to large databases) amounts of data -Possible to efficiently store large amounts of XML data through an XML front end to a database (Don’t believe it)  Data Identification -Tell you what kind of data you have -Can be used in different ways by different applications CSEB 124 Web Programming

How XML Can Be Used?  Stylability -Inherently style-free -XSL---Extensible Stylesheet Language -Different XSL formats can then be used to display the same data in different ways  Easily Processed -Regular and consistent notation -Vendor-neutral standard  Hierarchical -Fast to access -Easy to rearrange CSEB 124 Web Programming

How XML Can Be Used?  XML Separates Data from HTML  If you need to display dynamic data in your HTML document, it will take a lot of work to edit the HTML each time the data changes.  With XML, data can be stored in separate XML files. This way you can concentrate on using HTML for layout and display, and be sure that changes in the underlying data will not require any changes to the HTML.  With a few lines of JavaScript code, you can read an external XML file and update the data content of your web page. CSEB 124 Web Programming

How XML Can Be Used?  XML Simplifies Data Sharing  In the real world, computer systems and databases contain data in incompatible formats.  XML data is stored in plain text format. This provides a software- and hardware-independent way of storing data.  This makes it much easier to create data that can be shared by different applications. CSEB 124 Web Programming

How XML Can Be Used?  XML Simplifies Data Transport  One of the most time-consuming challenges for developers is to exchange data between incompatible systems over the Internet.  Exchanging data as XML greatly reduces this complexity, since the data can be read by different incompatible applications. CSEB 124 Web Programming

How XML Can Be Used?  XML Simplifies Platform Changes  Upgrading to new systems (hardware or software platforms), is always time consuming. Large amounts of data must be converted and incompatible data is often lost.  XML data is stored in text format. This makes it easier to expand or upgrade to new operating systems, new applications, or new browsers, without losing data. CSEB 124 Web Programming

How XML Can Be Used?  XML Makes Your Data More Available  Different applications can access your data, not only in HTML pages, but also from XML data sources.  With XML, your data can be available to all kinds of "reading machines" (Handheld computers, voice machines, news feeds, etc), and make it more available for blind people, or people with other disabilities. CSEB 124 Web Programming

How XML Can Be Used?  XML is Used to Create New Internet Languages  A lot of new Internet languages are created with XML.  Here are some examples: -XHTML -WSDL for describing available web services -WAP and WML as markup languages for handheld devices -RSS languages for news feeds -RDF and OWL for describing resources and ontology -SMIL for describing multimedia for the web CSEB 124 Web Programming

An example of XML Tove Jani Reminder Don't forget me this weekend! CSEB 124 Web Programming

An example of XML  The tags in the example above (like and ) are not defined in any XML standard. These tags are "invented" by the author of the XML document.  That is because the XML language has no predefined tags.  The tags used in HTML are predefined. HTML documents can only use tags defined in the HTML standard (like,, etc.).  XML allows the author to define his/her own tags and his/her own document structure. CSEB 124 Web Programming

XML BUILDING BLOCKS  Element -Delimited by angle brackets -Identify the nature of the content they surround -General format: … -Empty element:  Attribute -Example: - has an attribute (category="COOKING"). CSEB 124 Web Programming

XML Syntax  Refer to slide 13. The first line is the XML declaration. It defines the XML version (1.0) and the encoding used (ISO = Latin-1/West European character set).  Comments in XML:  XML tags are case sensitive  All XML elements must have a closing tag WRONG This is a paragraph This is another paragraph CORRECT This is a paragraph This is another paragraph CSEB 124 Web Programming

XML Syntax  All XML elements must be properly nested WRONG This text is bold and italic CORRECT This text is bold and italic  All XML documents must have a root tag..... CSEB 124 Web Programming

XML Syntax  Attribute values must always be quoted CORRECT Tove Jani OR Tove Jani  With XML, white space is preserved Unlike XML, HTML truncates multiple white-space characters to one single white-space. ExampleHTML: Hello Tove Output: Hello Tove With XML, the white-space in a document is not truncated. CSEB 124 Web Programming

XML Naming Rules  Names can contain letters, numbers, and other characters  Names cannot start with a number or punctuation character  Names cannot start with the letters xml (or XML, or Xml, etc)  Names cannot contain spaces CSEB 124 Web Programming

Most Recommended way  A date attribute is used in the first example: Tove Jani Reminder Don't forget me this weekend! CSEB 124 Web Programming

Most Recommended way  A date element is used in the second example: 10/01/2008 Tove Jani Reminder Don't forget me this weekend! CSEB 124 Web Programming

Most Recommended way  The most recommended way: an expanded date element is used Tove Jani Reminder Don't forget me this weekend! CSEB 124 Web Programming

Viewing XML Files  Viewing XML Files Viewing XML Files -XML documents do not carry information about how to display the data. -Without any information about how to display the data, most browsers will just display the XML document as it is.  Viewing an Invalid XML File Viewing an Invalid XML File  Other XML Examples Other XML Examples CSEB 124 Web Programming

Viewing XML Files  Displaying XML with CSS Displaying XML with CSS  XSLT is the recommended style sheet language of XML.  XSLT (eXtensible Stylesheet Language Transformations) is far more sophisticated than CSS.  XSLT can be used to transform XML into HTML, before it is displayed by a browser:  Displaying XML with XSLT Displaying XML with XSLT CSEB 124 Web Programming

Viewing XML Files  For more detail:  Refer to the next slide, where link to the XML applications is shown. CSEB 124 Web Programming

XML Applications DEMO: CSEB 124 Web Programming

REFERENCES  W3Schools (  XML material of HELINKS Substation Tool Set Training CSEB 124 Web Programming