Extensible Markup Language (XML)

Slides:



Advertisements
Similar presentations
1/7 ITApplications XML Module Session 8: Introduction to Programming with XML.
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.
XML: Extensible Markup Language
XML INTRODUCTION Prepared by Hongming Yu Modified by Fernando Farfán.
XML: text format Dr Andy Evans. Text-based data formats As data space has become cheaper, people have moved away from binary data formats. Text easier.
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.
Extensible Markup Language XML MIS 520 – Database Theory Fall 2001 (Day) Lecture 14.
XML Introduction What is XML –XML is the eXtensible Markup Language –Became a W3C Recommendation in 1998 –Tag-based syntax, like HTML –You get to make.
Tutorial 11 Creating XML Document
XML Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
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.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Fundamentals of Web DevelopmentRandy Connolly and Ricardo HoarFundamentals of Web DevelopmentRandy Connolly and Ricardo Hoar Fundamentals of Web DevelopmentRandy.
Chapter 13 XML Concept of XML Simple Example of XML XML vs. HTML in Syntax XML Structure DTD and CDATA Sections Concept of SAX Processing Download and.
ECA 228 Internet/Intranet Design I Intro to XSL. ECA 228 Internet/Intranet Design I XSL basics W3C standards for stylesheets – CSS – XSL: Extensible Markup.
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.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
XML eXtensible Markup Language by Darrell Payne. Experience Logicon / Sterling Federal C, C++, JavaScript/Jscript, Shell Script, Perl XML Training XML.
ColdFusion’s XML Capabilities Maryland CFUG April 12, 2005 Presented by Doug Ward.
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.
XML Technologies Surekha Akula
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
 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,
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
Tutorial 1: XML Creating an XML Document. 2 Introducing XML XML stands for Extensible Markup Language. A markup language specifies the structure and content.
Electronic Commerce COMP3210 Session 4: Designing, Building and Evaluating e-Commerce Initiatives – Part II Dr. Paul Walcott Department of Computer Science,
CITA 330 Section 6 XSLT. Transforming XML Documents to XHTML Documents XSLT is an XML dialect which is declared under namespace "
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.
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.
Lecture 16 Introduction to XML Boriana Koleva Room: C54
School of Computing and Information Systems CS 371 Web Application Programming XML and JSON Encoding Data.
Web Technologies COMP6115 Session 4: Adding a Database to a Web Site Dr. Paul Walcott Department of Computer Science, Mathematics and Physics University.
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.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
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.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
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 –
Well Formed XML The basics. A Simple XML Document Smith Alice.
What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized.
Martin Kruliš by Martin Kruliš (v1.1)1.
XML CORE CSC1310 Fall XML DOCUMENT XML document XML document is a convenient way for parsers to archive data. In other words, it is a way to describe.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
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 XML Babak Esfandiari. 2 What is XML? introduced by W3C in 98 Stands for eXtensible Markup Language it is more general than HTML, but.
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.
Chapter 13 XML Concept of XML Simple Example of XML
Unit 4 Representing Web Data: XML
Java XML IS
XML in Web Technologies
Database Processing with XML
The XML Language.
Chapter 7 Representing Web Data: XML
Chapter X IXXXXXXXXXXXXXXXX.
Creating an XML Document
More Sample XML By Sadia Anjum.
XML Introduction By Hongming Yu Feb 6th, 2002.
XML Problems and Solutions
14 XML.
Allyson Falkner Spokane County ISD
Review of XML IST 421 Spring 2004 Lecture 5.
Presentation transcript:

Extensible Markup Language (XML) CS422 Dick Steflik

What is XML A Markup Language for giving a text document contextual structure parentage is Standard Generalized Markup Language (SGML; ISO 8879) specify a documents structure and attributes, not processing should ne declarative a set of rules for encoding documents that is both human and machine readable

Things to note in the example Every tag is paired with an ending tag end tags have same name preceded with "/" tag pairs constitute xml entities Tag are in lower case by convention (XML doesn't care about case) Documents must be "well formed" tags may be nested one inside of another (never cross matched) every opening tag must have a closing tag

Tag Attributes Every tag may have a set of attributes specified as part of the tag as either name/value pairs (ex. id="abc") Attributes must be quoted keywords ( ex. noform) attributes specify additional information about the tag attributes are separated by one or more spaces commas will generate errors

Attribute example <message to=“you@yourAddress.com" from=“me@myAddress.com”> <subject>Another XML Example</subject> <text> This is the message body. </text> </message>

XML Prolog XML files always start out with a prolog line <?xml version="1.0"> other attributes: encoding – identifies the character set used to encode the data standalone – identifies that the document stands alone i.e doesn't require any external references.

Example <?xml version="1.0" encoding="ISO8859-1" standalone="yes"> <message <to>you@youraddress.com</to> <from>me@myaddress.com</from> <subject>Another XML Example</subject> <text> This is the message body. </text> </message>

Comments in XML files <!--- ->

Processing Instructions Since XML is a portable document format, the same document may be processed by a number of applications, this processing can be specified in the file Each instruction should be of the form: <?target instructions ?> target – the name of the processing application instruction – a string of characters that specify the processing commands or parameters

Why is XML Important? Not a binary format can be transtorted accross a network easily easy to create manually or programatically makes debugging easier can describe very complex objects easy to store in a database more scalable than binary

Data Identification Since the tags describe the structure of the data, it makes the same data more usable by multiple applications looking at the previous example: it is easily searchable by a search program easily displayable by a viewer easy to store in a database

Stylability For applications where rendering is important (word processors, browsers, publishing) use Extensible Stylesheet Language (XSL) XSLT XSL-FO XPATH

Inline reusability Unlike HTML, XML documents can include other inline documents this allows the construction of very complex objects from: other simpler objects other hosts

XML Parsers To make the data from an XML document useful it must be parsed out of the document. This can be easily done two ways SAX (Simple API for XML) java api that parses xml and retrieves the data as the tags are encountered DOM (Document Object Model) as an xml or xhtml document is loaded into the browser it is parsed into a document tree and then via javascript made available for processing More on DOM and SAX later in the course