E0262 – MIS – Multimedia Storage Techniques XML (Extensible Markup Language  XML is a markup language for creating documents containing structured information.

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

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.
WeB application development
INTRODUCTION TO HYPERTEXT MARKUP LANGUAGE 1. Outline  Introduction  Markup Languages  Editing HTML  Common Tags  Headers  Text Styling  Linking.
XHTML Basics.
1 eVenzia Technologies Learning HTML, XHTML & CSS Chapter 1.
3 November 2008CIS 340 # 1 Topics To define XML as a technology To place XML in the context of system architectures.
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
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
Tutorial 11 Creating XML Document
XML Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
Introduction to XML: Yong Choi CSU Bakersfield.
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
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.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
XML eXtensible Markup Language by Darrell Payne. Experience Logicon / Sterling Federal C, C++, JavaScript/Jscript, Shell Script, Perl XML Training XML.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
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.
E0262 – MIS – Multimedia Storage Techniques XML (Extensible Markup Language)  XML is a markup language for creating documents containing structured information.
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.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
CP2022 Multimedia Internet Communication1 HTML and Hypertext The workings of the web Lecture 7.
 2008 Pearson Education, Inc. All rights reserved Introduction to 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,
Tutorial 1: XML Creating an XML Document. 2 Introducing XML XML stands for Extensible Markup Language. A markup language specifies the structure and content.
1 Tutorial 13 Validating Documents with DTDs Working with Document Type Definitions.
HTML,DHTML & Javascript/Session1/1 of 39 Introduction and Basic Tags Session 1 of Using HTML, DHTML & JavaScript.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
XML eXtensible Markup Language. Topics  What is XML  An XML example  Why is XML important  XML introduction  XML applications  XML support CSEB.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
XML Extensible Markup Language Aleksandar Bogdanovski Programing Enviroment LABoratory
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.
XML Documents Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Elements Attributes Comments PI Document.
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.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
Lecture 16 Introduction to XML Boriana Koleva Room: C54
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.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Understanding How XML Works Ellen Pearlman Eileen Mullin Programming the.
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.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
Unit 10 Schema Data Processing. Key Concepts XML fundamentals XML document format Document declaration XML elements and attributes Parsing Reserved characters.
1 herbert van de sompel CS 502 Computing Methods for Digital Libraries Cornell University – Computer Science Herbert Van de Sompel
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
225 City Avenue, Suite 106 Bala Cynwyd, PA , phone , fax presents… XML Syntax v2.0.
Well Formed XML The basics. A Simple XML Document Smith Alice.
©SoftMoore ConsultingSlide 1 Introduction to HTML: Basic Document Structure.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
Games: XML Presented by: Idham bin Mat Desa Mohd Sharizal bin Hamzah Mohd Radzuan bin Mohd Shaari Shukor bin Nordin.
Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley What did we learn so far? 1.Computer hardware and software 2.Computer experience.
XP 2 HTML Tutorial 1: Developing a Basic Web Page.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
XP 1Creating Web Pages with XML Tutorial 1 New Perspectives on XML Tutorial 1 – Creating an XML Document.
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 HTML. 2 Definitions  W W W – World Wide Web.  HTML – HyperText Markup Language – The Language of Web Pages on the World Wide Web.
NOTEPAD++ Lab 1 1 Riham ALSmari. Why Notepad++ ?  Syntax highlighting  Tabbed document interface  Zooming  Indentation code  Find and replace over.
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.
HTML Structure & syntax
Unit 4 Representing Web Data: XML
Extensible Markup Language XML
Extensible Markup Language XML
Chapter 7 Representing Web Data: XML
Creating an XML Document
Presentation transcript:

E0262 – MIS – Multimedia Storage Techniques XML (Extensible Markup Language  XML is a markup language for creating documents containing structured information.  XML stands for eXtensible Markup Language.  Structured information contains content and what role the content plays.  Eg. content-audio, video etc  Role- heading, address etc.

E0262 – MIS – Multimedia Storage Techniques HTML To create web pages. Is platform independent Edited using text editor or notepad Markup language – Contains Tags Angle brackets. eg. Good Morning In case end tag is not required. src=attribute followed by doll.jpg Tags are not case sensitive Hello It has head and body

E0262 – MIS – Multimedia Storage Techniques HTML format. Head has information about document And body the actual content. Web page

E0262 – MIS – Multimedia Storage Techniques XML & HTML In HTML tags are prefined, language is fixed. XML specifies neither the tag set or semantics. It is a open language, defines tag semantics. XML defines 3 specifications. 1. Basic XML specification(XML 1.0) 2. XML pointer language (Xpointer) XML linking language (Xlink) 3. XSL-Extensible style language

E0262 – MIS – Multimedia Storage Techniques Applications of XML * Cell Phones - XML data is sent to some cell phones. The data is then formatted by the specification of the cell phone software designer to display text or images, and even to play sounds! * File Converters - Many applications have been written to convert existing documents into the XML standard. An example is a PDF to XML converter. * VoiceXML - Converts XML documents into an audio format so that you can listen to an XML document.

E0262 – MIS – Multimedia Storage Techniques Internet Explorer 6.0 supports viewing XML files. You can download IE 6.0 from Microsoft's Website. Internet Explorer 6.0 has special color coding the make XML documents easier to read. Firefox XML Viewer: Firefox has some of the same features as Internet Explorer. You can download Mozilla's Firefox from Mozilla.com. Free XML Editors: There are many free XML editors available for download on the internet. Here are a few we have found useful: * XML Cooktop * XML Mind Standard Edition * Pete's XML Editor Free XML Viewer

E0262 – MIS – Multimedia Storage Techniques XML Syntax: XML Code: Robert A+ Lenard A-

E0262 – MIS – Multimedia Storage Techniques XML code. XML code has five components: 1.Prolog 2.Elements 3.Attributes 4.Entity reference 5.Comments Prolog-first structural elements. It has XML declaration and Data Type Declaration (DTD) Data type 1.0 & encoding rules.

E0262 – MIS – Multimedia Storage Techniques XML Elements Elements are common form of Markup. They contain the opening and closing tags, child elements, and data. Robert A+ ----> empty XML is case sensitive. Elements naming convention: Must begin with an underscore or letter Can contain letters, digits, underscore,hyphen etc

E0262 – MIS – Multimedia Storage Techniques XML Attribute An attribute appears within the opening tag of an element. Must not contain any white spaces. Robert A+

E0262 – MIS – Multimedia Storage Techniques XML Entity references They are used to reference data that is not directly in the structure Built in entity like &,, “,' The string Tin&Tin(“Don't read x<y”) Tin&Tin("Don&apos;t read x<y")

E0262 – MIS – Multimedia Storage Techniques XML Comment Syntax Robert A+ Lenard A-

E0262 – MIS – Multimedia Storage Techniques XML Commenting out XML To temporarily remove some XML code from your XML document. Robert A+ <!-- Lenard A- -->

E0262 – MIS – Multimedia Storage Techniques Processing Instructions Used to provide information to the application Name is special command, pi names beginning with xml are reserved Eg. In case of image file, application will be informed to open image With bmp or jpeg opener. Or will be informed that image type is jpeg. etc

E0262 – MIS – Multimedia Storage Techniques When an element appears within another element, it is said that the inner element is "nested". The term nested can be related directly to the word "nest". If an element is nested within another element, then it is surrounded, protected, or encapsulated by the outer element Example A XML Nesting

E0262 – MIS – Multimedia Storage Techniques Example B All elements are closed in the order that they were opened. Those elements which were opened first are closed last. Example B is what example A must look like to be a well-formed XML document.

E0262 – MIS – Multimedia Storage Techniques CDATA section A CDATA section instructs the XML parser to ignore most Markup characters. Example: <![CDATA[ temp=*p; *p=*q; *q=temp; if(temp<0) temp=-temp; ]]> All character data in between is passed to the application Without interpretation.

E0262 – MIS – Multimedia Storage Techniques Broken XML Code: Mr. Garcia Hello there! How are we today? Well-Formed XML Code: Mr. Garcia Hello there! How are we today? The error in the first example was : The document suffers from improper nesting. The body element was opened inside the to element, yet body was not closed before the to element was closed!

E0262 – MIS – Multimedia Storage Techniques Entity References If you place a character like "<" inside an XML element, it will generate an error because the parser interprets it as the start of a new element. if salary if salary < 1000 then There are 5 predefined entity references in XML: < < less than > > greater than & & ampersand &apos; ' apostrophe " " quotation mark

E0262 – MIS – Multimedia Storage Techniques DTD (Document type declaration) Important for displaying in a browser XML allows us to create own tag names Four kinds of declarations: Element type Attribute type Entity type Notation type Element type: helps to identify the name of the elements and content of the elements. Example: <xsd:element name=”Name” type=”xsd:string” maxOccurs=”unbounded/> They can be defined with reference to cardinality. (How many times they appear in document. Xsd-keyword used to define element Name is element, unbounded-number of times element is occur.

E0262 – MIS – Multimedia Storage Techniques Attribute list declaration Attributes should have name and type. They can have Restriction with reference to cardinality. <xsd:attribute name=”city” type=”xsd:string” fixed=”bangalore”/> Fixed is default cannot be changed.

E0262 – MIS – Multimedia Storage Techniques Entity declaration Allows us to associate a name with some other fragment or content.. 2 types are there: Internal entity External entity Internal entity: &lt, &gt,&amp, &apos, &quot. External entity: associated a name with the contents of another file <!entity IISclogo SYSTM “/institute/logo.gif> IISc logo will be replace by image.

E0262 – MIS – Multimedia Storage Techniques XML(Table)

E0262 – MIS – Multimedia Storage Techniques XPath - Finding Information XPath is the solution to finding information in an XML document. XPath uses expressions to find elements, attributes, and other information in your XML. If you have an XML document that contained a bunch of your favorite books, each with author children elements, you can use a one line XPath expression to find all the authors of your favorite books! The most common place people might see XPath expressions are in XSLT (Extensible Stylesheet Language Transformation).

E0262 – MIS – Multimedia Storage Techniques Simple Links Resembles HTML <link xml:link=”simple” href=”http// Home page

E0262 – MIS – Multimedia Storage Techniques Extended Links (relation between 2 or more resources) <elink xml:link=”extended” Home page Home page ---

E0262 – MIS – Multimedia Storage Techniques Structure of an XML Document

E0262 – MIS – Multimedia Storage Techniques Structure of an XML Document

E0262 – MIS – Multimedia Storage Techniques Structure of an XML Document

E0262 – MIS – Multimedia Storage Techniques Structure of an XML Document

E0262 – MIS – Multimedia Storage Techniques Structure of an XML Document

E0262 – MIS – Multimedia Storage Techniques Structure of an XML Document

E0262 – MIS – Multimedia Storage Techniques Structure of an XML Document