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.

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

Chapter 7 An Introduction to XML.
CG0119 Web Database Systems Parsing XML: using SimpleXML & XSLT.
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.
Cascading Style Sheets
1 XSLT – eXtensible Stylesheet Language Transformations Modified Slides from Dr. Sagiv.
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
An Introduction to XML Based on the W3C XML Recommendations.
XSL XSLT and XPath 11-Apr-17.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
INF201 Fall2010 Intro. to Info. Technologies Department of Informatics University at Albany – SUNY Original Source: w3schools.com Prepared by Xiao Liang,
IS 373—Web Standards Todd Will
XSL Unit 6 November 2. XSL –eXtensible Stylesheet Language –Basically a stylesheet for XML documents XSL has three parts: –XSLT –XPath –XSL-FO.
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
XML October 24, Unit 6. What is XML? Stands for eXtensible Markup Language It is a markup language, like HTML But, –XML is designed to markup data –HTML.
Manohar – Why XML is Required Problem: We want to save the data and retrieve it further or to transfer over the network. This.
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.
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
Julien Thibault  HTML is the basic building-blocks of webpages  It is not a language!! (despite its name)  Structure text/media.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
IS432 Semi-Structured Data Lecture 5: XSLT Dr. Gamal Al-Shorbagy.
XP New Perspectives on XML Tutorial 6 1 TUTORIAL 6 XSLT Tutorial – Carey ISBN
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.
WORKING WITH XSLT AND XPATH
An Introduction to XML Presented by Scott Nemec at the UniForum Chicago meeting on 7/25/2006.
Web page - A Web page is a simple text file that contains a set of HTML tags (code) that describe (to the browser) what should go on a web page. It may.
XHTML,XML M.Abdullah Mrian. What is the XHTML Why XHTML ?
 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,
Introduction to HTML. What is HTML? Hyper Text Markup Language (HTML) is a language for describing web pages. HTML is not a programming language, it is.
XML About XML Things to be known Related Technologies XML DOC Structure Exploring XML.
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
Presentation Topic: XML and ASP Presented by Yanzhi Zhang.
Lecture 11 XSL Transformations (part 1: Introduction)
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.
1 Using XML. 2 The Ticket Booth System We need a way to retain information between program runs. In real life, we would probably use a database system.
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.
1 Introduction  Extensible Markup Language (XML) –Uses tags to describe the structure of a document –Simplifies the process of sharing information –Extensible.
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 Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
CEAL 2003 XML for CJK Wooseob Jeong School of Information Studies University of Wisconsin - Milwaukee.
1 Overview of XSL. 2 Outline We will use Roger Costello’s tutorial The purpose of this presentation is  To give a quick overview of XSL  To describe.
1 Credits Prepared by: Rajendra P. Srivastava Ernst & Young Professor University of Kansas Sponsored by: Ernst & Young, LLP (August 2005) XBRL Module Part.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Understanding How XML Works Ellen Pearlman Eileen Mullin Programming the.
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.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
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 –
Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
XSLT: How Do We Use It? Nancy Hallberg Nikki Massaro Kauffman.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
CIS 228 The Internet 9/20/11 XHTML 1.0. “Quirks” Mode Today, all browsers support standards Compliant pages are displayed similarly There are multiple.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 14 This presentation © 2004, MacAvon Media Productions XML.
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.
Rendering XML Documents ©NIITeXtensible Markup Language/Lesson 5/Slide 1 of 46 Objectives In this session, you will learn to: * Define rendering * Identify.
Extensible Markup Language (XML) Pat Morin COMP 2405.
Creating an XSLT Style Sheet for Formatting Data
Tutorial 04 (cont’) Using XPath Patterns in an XSLT Style Sheet.
What is XML?.
Presentation transcript:

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 contained within a root element XML is easily transferable from one system to another –All you need is the Document Type Definition (DTD) or the schema Some schema include: XHTML, SVG, MathML, and OpenOffice

XML, review cont. XML is stored in plain text files –Just like HTML –Can edit with any text editor Can display in web pages Can separate data from your HTML –Your data can change without having to rewrite your webpage –Think product information on your site Simple as showing how much is in stock would require rewriting your HTML or using a database

Naming Conventions for Tags Names can contain letters, numbers, and other characters – –, Names cannot start with punctuation or numbers –

Naming Conventions, cont. Do not begin names with XML, or xml, or Xml, or any variation thereof. Names cannot contain spaces – It is good to use underscores _ – Or you can capitalize letters instead –

Naming conventions, cont. Avoid using – or. –Dashes can be mistaken for subtraction symbols –“.” is often used in programming –, You can use non-English characters, but for portability, you shouldn’t. Cannot use colons either –“:” is reserved for namespaces

Attributes You can use attributes in XML They are done the same way that we do attributes in HTML But, –If the attribute is actually describing data, better to make it an element comm …… More extendable this way

In Class Demo of XML File Save xml files as.xml Can be viewed in your browser

Styling your XML You can use CSS to style your XML XML actually has it’s own stylesheet language called XSL –We will discuss this later With HTML and CSS we should specify the display property –Inline, block, or list-item (or none) –Tells the browser how to display the item

In-Class Example Adding style to a list of students Adding a style to a product list

Viewing Your XML File Can view your XML file in your browser It doesn’t look like a regular text file –Has special formatting We can use the “-” to collapse parts of the file for viewing Use the “+” to expand parts of the file for viewing But where do the “-” and “+” come from?

Relationships between Elements Products is the parent of bouquet Bouquet is the child of products Flower, name, and price are children of bouquet Flower, name, and price are siblings (they have the same parent) Dozen Roses 12 Red Roses $49.95

Element Content Elements can have different types of content –Element: Contains other elements –Mixed: Contains elements and text –Simple or Text: Only contains text –Empty: Contains no elements or text

Content, cont. Products: element –Contains elements bouquet Bouquet: element –Contains name, flower, price Name: simple –Contains the name of the bouquet and no other elements Flower: mixed –Contains quantity (an element) and text Price: simple –Only contains the price, which is text Dozen Roses 12 Red Roses $49.95

Data Islands We can insert XML directly into our HTML files –But, this is not supported in most browsers –Not supported in Firefox –This is for your information, but do NOT use it in this course We won’t be able to read your file Either we can put XML into the.html file ….. Or, we can embed the xml file

XSL XSL is more complicated than CSS –eXtensible Stylesheet Language XSL has 3 parts: –XSLT: transforms XML into XHTML –XPath: for navigating XML documents –XSL-FO: for formatting XML documents XSLT is probably the most important bit –Uses XPath to match parts of the XML file to a template and produces a new document –Usually to XHTML elements –We’ll begin going over XSLT on Wednesday

Questions?