Session I Chapter 1 – Writing XML

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.
Ali Alshowaish w3schools. XML documents use a self-describing and simple syntax: The first line is the XML declaration. It defines the XML version (1.0)
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.
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
XML: New or Old? XML was not an extention of HTML That already existed! SGML (ISO 8879) XML was a simplification of SGML  80 / 20 rule  (80% of the features.
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
XML Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
Introduction to XML: Yong Choi CSU Bakersfield.
Copyright © 2003 Pearson Education, Inc. Slide 2-1 Created by Cheryl M. Hughes, Harvard University Extension School — Cambridge, MA The Web Wizard’s Guide.
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.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
Pemrograman Berbasis WEB XML -Aurelio Rahmadian- Sumber: w3cschools.com.
 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,
Session IV Chapter 9 – XML Schemas
E0262 – MIS – Multimedia Storage Techniques XML (Extensible Markup Language  XML is a markup language for creating documents containing structured information.
VICTORIA UNIVERSITY OF WELLINGTON Te Whare Wananga o te Upoko o te Ika a Maui SWEN 432 Advanced Database Design and Implementation An Introduction to XML.
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.
XML Documents Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Elements Attributes Comments PI Document.
XML 2 Prepared by / Nael Alian Uinverity of Palestine Re. 1.
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.
17 Apr 2002 XML Syntax: Documents Andy Clark. Basic Document Structure Element tags – Elements have associated attributes Text content Miscellaneous –
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
Well Formed XML The basics. A Simple XML Document Smith Alice.
Introduction to XML XML – Extensible Markup Language.
Web Services Course Introduction Week1 Eva Rose, Ph.D.
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.
XML blocks XML STRUCTURE The most basic building blocks of an XML file are elements, attributes and comments. Compiled based on Tutorial PhUSE 2008 XML.
Module Road Map Assignment Road Map Notice we have linked the conduit directly to the presentation layer. This is normally a bad idea!
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
CHAPTER NINE Accessing Data Using XML. McGraw Hill/Irwin ©2002 by The McGraw-Hill Companies, Inc. All rights reserved Introduction The eXtensible.
HTML is about making documents. Simple Code for Simple Layout My Document This is an example HTML document First paragraph Second paragraph This is the.
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 University Of Benghazi IT Faculty Computer Networks and Communications Department Introduction to Internet Programming(CN281)
XML BASICS.
Introduction to XML Extensible Markup Language
XML Parsers.
XML and XPath.
Extensible Markup Language XML
DHTML & XML.
Database Systems Week 12 by Zohaib Jan.
2017, Fall Pusan National University Ki-Joune Li
Extensible Markup Language XML
EXtensible Markup Language(XML)
By HITESHWAR KUMAR AZAD Ph.D Scholar
XML stands for Extensible Markup Language.
ITI 133 HTML5 Desktop and Mobile Level I
The XML Language.
XML -07-.
HTML5 Level I Session II Chapter 3 - How to Use HTML to Structure a Web Page
XML – Basic Concepts (modified version from Dr. Praveen Madiraju)
Introduction to Web programming
XML Introduction By Hongming Yu Feb 6th, 2002.
Session I Chapter 1 – Writing XML
SDI from a technological perspective: Metadata
Javascript & jQuery XML.
What is XML?.
Master a Skill / Learn for Life
2017, Fall Pusan National University Ki-Joune Li
HTML5 Session II Chapter 2 - How to Code, Test and Validate a Web Page Chapter 3 - How to Use HTML to Structure a Web Page
XML: Introduction to XML
Session II Chapter 6 – Creating DTDs
Allyson Falkner Spokane County ISD
XML/JSON/AJAX Master a Skill / Learn for Life
Review of XML IST 421 Spring 2004 Lecture 5.
Presentation transcript:

Session I Chapter 1 – Writing XML http://www.profburnett.com CMP 051 XML Introduction Session I Chapter 1 – Writing XML http://www.profburnett.com

Outline XML Rules XML Basic Components XML Tree XML Syntax Rules XML Elements XML Attributes XML Comments XML Encoding Predefined Entities 8/1/2014 Copyright © Carl M. Burnett

XML Rules Platform independent Software independent Vendor and technology-independent metalanguage Designed to deliver structured content over the Web 1/1/2019 Copyright © Carl M. Burnett

XML Basic Components An element is the basic building block Each element begins with a start tag and ends with an end tag Attributes are specifications for elements. They appear as name-value pairs Elements may or may not require attributes 8/1/2014 Copyright © Carl M. Burnett

XML Tree 8/1/2014 Copyright © Carl M. Burnett Root Element <bookstore> Element <book> Element <Title> Attribute “lang” Text: Everyday Italian Element <Year> Text: 2005 Element <Author> Text: Giada De Laurentis Element <Price> Text: 30.00 Attribute <category> 8/1/2014 Copyright © Carl M. Burnett

XML Tree Root element = <bookstore> <book category="COOKING"> <title lang="en">Everyday Italian</title> <author>Giada De Laurentiis</author> <year>2005</year> <price>30.00</price> </book> <book category="CHILDREN"> <title lang="en">Harry Potter</title> <author>J K. Rowling</author> <price>29.99</price> <book category="WEB"> <title lang="en">Learning XML</title> <author>Erik T. Ray</author> <year>2003</year> <price>39.95</price> </bookstore> XML Tree Root element = <bookstore> All <book> elements in <bookstore> document 4 children: <title> <author> <year> <price> 8/1/2014 Copyright © Carl M. Burnett

XML Syntax Rules XML is case-sensitive Root Element is required All opening tags must have a corresponding closing tag, or a terminating slash on opening tag No overlapping of tags can occur All attribute values must be enclosed in single or double quotation marks 8/1/2014 Copyright © Carl M. Burnett

XML Syntax Rules An application profile Defines XML-related languages for a specific organization or industry Creates specific document types for XML-related languages and develops applications to handle those documents The tagged data can be used for creation, management, and maintenance of large collections of complex information 1/1/2019 Copyright © Carl M. Burnett

XML Elements Root Element Child Element Nesting Elements <$xml version=“1.0”?> <bookstore> ……… </bookstore> Root Element Child Element Nesting Elements <$xml version=“1.0”?> <bookstore>   <book> <title>Harry Potter</title> <author>J K. Rowling</author> <year>2005</year> <price>29.99</price> </book> </bookstore> <$xml version=“1.0”?> <bookstore><title>Harry Potter</title></bookstore> 8/1/2014 Copyright © Carl M. Burnett

XML Attributes Same Rules as Element Names No Two Attributes with same name Must be in Quotes Treat Attributes as “Metadata” bookstore>   <book category="CHILDREN“>     <title>Harry Potter</title>     <author>J K. Rowling</author>     <year>2005</year>     <price>29.99</price>   </book> </bookstore> 8/1/2014 Copyright © Carl M. Burnett

XML Attributes (Metadata) Different was to use <note> <date>10/01/2008</date> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> <note date="10/01/2008">   <to>Tove</to>   <from>Jani</from>   <heading>Reminder</heading>   <body>Don't forget me this weekend!</body> </note> <note> <date> <day>10</day> <month>01</month> <year>2008</year> </date> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> 8/1/2014 Copyright © Carl M. Burnett

XML Comments <!-- This is a comment --> 8/1/2014 Copyright © Carl M. Burnett

XML Encoding <?xml version="1.0"?> <?xml version="1.0" encoding="UTF-8"?> (8-bits) - Web <?xml version="1.0" encoding="UTF-16"?> (16-bits) 8/1/2014 Copyright © Carl M. Burnett

Predefined Entities Code Type Description < less than > greater than & & ampersand  &apos; ' apostrophe " " quotation mark 8/1/2014 Copyright © Carl M. Burnett

XML Examples An XML CD catalog An XML plant catalog A Simple Food Menu 8/1/2014 Copyright © Carl M. Burnett

Review XML Rules XML Basic Components XML Tree XML Syntax Rules XML Elements XML Attributes XML Comments XML Encoding Predefined Entities Next – Session II – Chapter 2 - XSLT 8/1/2014 Copyright © Carl M. Burnett

Student Exercise 1 Dreamweaver Environment Setup Setup your Dreamweaver environment with the parameters provided. Setup local development folder on GBTC share drive. setup live site on MC Web4forStuents website using environment setup parameters provided 8/1/2014 Copyright © Carl M. Burnett

Student Exercise 2 - Create XML File Create a contacts XML file using data in contacts PDF. Synchronize your local development site with your live site. 8/1/2014 Copyright © Carl M. Burnett