CIS 275—Web App Dev I XML. 2 Introduction to XMLXML XML stands for ________________________. HTML was designed to display data. XML was designed to _________.

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

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.
3 November 2008CIS 340 # 1 Topics To define XML as a technology To place XML in the context of system architectures.
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
CSE 190: Internet E-Commerce Lecture 17: XML, XSL.
IS 373—Web Standards Todd Will
Computer Information Systems Information Systems California State University Los Angeles Jongwook Woo CIS 561 Design of an E-Commerce Site XML Validation.
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
DT228/3 Web Development Introduction to XML.
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
Introduction to XML: Yong Choi CSU Bakersfield.
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 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.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
WPF chapter 15 Dr. John Abraham Professor UTPA. WPF –an introduction WPF provides a single platform capable of handling graphics, audio and video. WPF.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Pemrograman Berbasis WEB XML -Aurelio Rahmadian- Sumber: w3cschools.com.
Introduction to XML. What is XML? Extensible Markup Language XML Easier-to-use subset of SGML (Standard Generalized Markup Language) XML is a.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
XHTML. Introduction to XHTML What Is XHTML? – XHTML stands for EXtensible HyperText Markup Language – XHTML is almost identical to HTML 4.01 – XHTML is.
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 TUTORIAL Portions from w3 schools By Dr. John Abraham.
How do I use HTML and XML to present information?.
CIS 375—Web App Dev II XSL. 2 XSL Introduction XSL stands for _____________________________. XSL is the language used for manipulating and displaying.
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.
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
XML - DTD Week 4 Anthony Borquez. What can XML do? provides an application independent way of sharing data. independent groups of people can agree 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.
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.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
17 Apr 2002 XML Syntax: Documents Andy Clark. Basic Document Structure Element tags – Elements have associated attributes Text content Miscellaneous –
1 Introduction to XML XML stands for Extensible Markup Language. Because it is extensible, XML has been used to create a wide variety of different markup.
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 Design Goals 1.XML must be easily usable over the Internet 2.XML must support a wide variety of applications 3.XML must be compatible with SGML 4.It.
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
IS446: Internet Software Development Dr. Azeddine Chikh.
CIS 375—Web App Dev II XSD. 2 XSD IntroductionIntroduction XSD stands for XML __________ Definition, which is the XML-based alternative to ______. An.
CIS 375—Web App Dev II DTD. 2 Introduction to DTD DTD stands for ______________________. The purpose of a DTD is to define the legal building blocks of.
ASHIMA KALRA  INTRODUCTION OF XML INTRODUCTION OF XML  XML FEATURES XML FEATURES  XML SYNTAX XML SYNTAX  XML ELEMENTS XML ELEMENTS  XML ATTRIBUTES.
Introduction to DTD A Document Type Definition (DTD) defines the legal building blocks of an XML document. It defines the document structure with a list.
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 DTD. XML Validation XML with correct syntax is "Well Formed" XML. XML validated against a DTD is "Valid" XML.
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.
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.
First Prototype Presentation, Sprint Review and the Game Dev Production Process CS 153P Session 8.
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.
XML QUESTIONS AND ANSWERS
Presentation transcript:

CIS 275—Web App Dev I XML

2 Introduction to XMLXML XML stands for ________________________. HTML was designed to display data. XML was designed to _________ data. With XML, you define your own _______. Sample XML document: Tove Jani Reminder Don't forget me this weekend!

3 How can XML be Used? With XML, data can be stored separately from the ______ code. With XML, data are stored in plain _____ format. With XML, data can be exchanged between ____________ systems. Important languages like _____ are written in XML. XML is important for _____ applications.

4 XML Document Structure Sample XML document: Tove Jani Reminder Don't forget me this weekend! The XML document above consists of an XML ___________ One ______ element Four _______ elements

5 XML Syntax All XML elements must have a _________ tag. XML tags are ______ sensitive. XML elements must be properly nested. This text is bold and italic All XML documents must have a ______ element. Attribute values must be _________. Comments in XML look like this:

6 XML Elements XML documents are _________. New elements can be added without crashing an existing application. XML elements have ____________ (there are parent, child, and sibling elements). Elements have content Some have only element content (e.g., the root element) Some have simple (_____) content My First XML Some have mixed content (element and simple) Some have no content Elements may have ___________

7 Element Content My First XML Introduction to XML What is HTML What is XML XML Syntax Elements must have a closing tag Elements must be properly nested In this example, has _________ content, because it contains other elements. has _______ content because it contains both text and other elements. has ________ content (or text content) because it contains only text. has _______ content, because it carries no information.

8 XML Attributes Element attributes are not part of the data, but contain information about the data. computer.gif You should try to avoid using attributes, especially if the information feels like basic data. One good use of attributes is for _____________. Tove Jani Reminder Don't forget me this weekend! …

9 XML Validation A “well formed” XML document has correct _______. A “valid” XML document is both well formed and conforms to a DTD (__________ Type Definition). A DTD defines document structure and legal ______. An XML _________ is the W3C alternative to DTD. Invalid XML documents will not execute properly. See for details. XML validators:

10 Internal DOCTYPE Declaration <!DOCTYPE note [ ]> Tove Jani Reminder Don't forget me this weekend #PCDATA means “_______ character data.”

11 External DOCTYPE Declaration XML (note.xml) Tove Jani Reminder Don't forget me this weekend DTD (note.dtd)

12 Why use a DTD? With DTD, your XML files can carry a description of its own _________ with it. With a DTD, independent groups of people can agree to use a common DTD for ___________ data. Your application can use a _________ DTD to verify that the data you receive from the outside world is valid. You can also use a DTD to _______ your own data.

13 Viewing XML Files An XML document can be viewed in IE 5.0+ by typing the URL or double-clicking the icon. Look at this XML file: note.xml.note.xml Invalid XML files will not display: note_error.xml.note_error.xml Other Examples An XML CD catalog An XML plant catalog A Simple Food Menu

14 Displaying XML with CSS You can view an XML with the help of a CSS, but this is not the future of XML. Take a look at this pure XML file: The CD CatalogThe CD Catalog Then look at this style sheet: The CSS fileThe CSS file Finally, view the CD Catalog formatted with the CSS filethe CD Catalog formatted with the CSS file You can write a web page using XML, but this is not recommended: A homepage written in XML.A homepage written in XML ______ (HTML defined as XML) is recommended for creating web pages.

15 Displaying XML with XSL XSL (__________ Style Language) is the preferred style sheet language of XML. XSL is far more sophisticated than CSS. If you have Netscape 6 or IE 5 or higher you can view the XML file and the XSL style sheet.the XML filethe XSL style sheet View the result in IE 6 View the result in IE 5

16 XML Embedded in HTML The unofficial ______ tag is used to embed XML data within HTML. Tove Jani Reminder Don't forget me this weekend! You can embed a separate XML file.

17 Data Binding Example of binding a data island to an HTML element (in the following case, _______): Here is the result.result Here is the external XML file.external XML file