What is XML (Extensible Markup Language)? XML is basically a better comma delimited file. Example: Your client asks you to write a new reporting system.

Slides:



Advertisements
Similar presentations
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.
Advertisements

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.
Website Design.
XML 6.3 DTD 6. XML and DTDs A DTD (Document Type Definition) describes the structure of one or more XML documents. Specifically, a DTD describes:  Elements.
3 November 2008CIS 340 # 1 Topics To define XML as a technology To place XML in the context of system architectures.
Document Type Definitions
IS 373—Web Standards Todd Will
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.
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
Tutorial 11 Creating XML Document
Introduction to XML: Yong Choi CSU Bakersfield.
Introduction to XML Rashmi Kukanur. XML XML stands for Extensible Markup Language XML was designed to carry data XML and HTML designed with different.
Document Type Definitions. XML and DTDs A DTD (Document Type Definition) describes the structure of one or more XML documents. Specifically, a DTD describes:
Developing a Basic Web Page Posting Files on UMBC
XML Basics Hope Greenberg Center for Teaching & Learning.
Web page - A Web page is a simple text file that contains HTML tags (code) that describe what should be displayed on the browser. -The Web browser interprets.
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
Internet Skills An Introduction to HTML Alan Noble Room 504 Tel: (44562 internal)
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
XML – Extensible Markup Language XML eXtensible – add to language. Markup – delimit info using tags. Language – a way to express info.
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.
An Introduction to XML Presented by Scott Nemec at the UniForum Chicago meeting on 7/25/2006.
CS134 Web Design & Development Creating a Basic Web Page Mehmud Abliz.
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 Syntax - Writing XML and Designing DTD's
HTML INTRODUCTION, EDITORS, BASIC, ELEMENTS, ATTRIBUTES.
Section 4.1 Format HTML tags Identify HTML guidelines Section 4.2 Organize Web site files and folder Use a text editor Use HTML tags and attributes Create.
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 data.
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,
Session IV Chapter 9 – XML Schemas
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,
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
XML 2nd EDITION Tutorial 1 Creating An Xml Document.
XML Documents Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Elements Attributes Comments PI Document.
IS432 Semi-Structured Data Lecture 2: DTD Dr. Gamal Al-Shorbagy.
USING XML AS A DATA SOURCE. Data binding is a process by which information in a data source is stored as an object in computer memory. In this presentation,
XP 1 New Perspectives on XML Binding XML Data with Internet Explorer.
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.
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.
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.
The eXtensible Markup Language (XML). Presentation Outline Part 1: The basics of creating an XML document Part 2: Developing constraints for a well formed.
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.
XML Basics A brief introduction to XML in general 1XML Basics.
1 Tutorial 11 Creating an XML Document Developing a Document for a Cooking Web Site.
XML and SVG from PQL By Dave Doulton Computing Services University of Southampton.
Unit 10 Schema Data Processing. Key Concepts XML fundamentals XML document format Document declaration XML elements and attributes Parsing Reserved characters.
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 –
XML DTD. XML Validation XML with correct syntax is "Well Formed" XML. XML validated against a DTD is "Valid" XML.
Unit 8 XML Documents. Key Concepts XML fundamentals XML document format Document declaration XML elements and attributes Parsing Characters and white.
Introduction to XML Jussi Pohjolainen TAMK University of Applied Sciences.
XP 1Creating Web Pages with XML Tutorial 1 New Perspectives on XML Tutorial 1 – Creating an XML Document.
XML & JSON. Background XML and JSON are to standard, textual data formats for representing arbitrary data – XML stands for “eXtensible Markup Language”
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.
Java XML IS
XML in Web Technologies
XML Technologies and Related Applications
Creating an XML Document
More Sample XML By Sadia Anjum.
CS 240 – Advanced Programming Concepts
Presentation transcript:

What is XML (Extensible Markup Language)? XML is basically a better comma delimited file. Example: Your client asks you to write a new reporting system for an application that was written five years ago. Nobody who originally worked on the application is still at the company. You have to figure out how the app works, parse the data that it produces and arrange the data into a report. The application gives you data that looks like this: Jones, Washer, , New York Janson, Blender, 56.90, Austin Newton, Mixer, 90.00, Waco This is a comma delimited document. Each column is separated by a comma and each record is on a different row.

What is XML? Jones, Washer, , New York Janson, Blender, 56.90, Austin Newton, Mixer, 90.00, Waco Problems with delimited data: What happens if the data itself includes a comma? You have to put quotes around the data Different documents use different delimiters – so you to write a parser for each delimiter Different OS have different ideas about what makes the end of a line carriage return vs. line feed What is this data? Name?, Item?, What is the number? Without documentation, we have no idea Can’t represent related data customers and orders in the same document hard to represent a hierarchy Can’t add new fields without breaking the parser

What is XML? Same data in XML Jones Washer New York Janson Blender Austin Newton Mixer Waco

Advantages of XML? XML documents are readable and self describing tags indicate what each piece of data is XML is interoperable – not tied to any operating system or technology create documents using a text editor Parsers exist for virtually every operating system XML documents are hierarchical easy to add related data You don’t have to write the parser many already exist Changes to the document do not break the parser you can add elements without breaking backward compatibility XML lets you concentrate on writing the application instead of worrying about the details of the parser.

XML Document Structure and Syntax Declaration First line of every document. Always the same. Not required. Tells you two things It’s and xml document It conforms to the XML 1.0 W3C recommendation Elements elements are what contain the data sometimes called nodes documents must have at least one top level element Most basic XML document

XML is very picky Most basic XML document Every element must have an open and a closing tag Declaration is the only element that does not need a closing tag XML is case sensitive orders is different from Orders or ORDERS

Elements that contain Data 1/4/ Steve Moore Description in English: It contains a top level ORDERS element and a single ORDER element, or node. The ORDER node is a child of the ORDERS element. The ORDER element itself contains four child nodes of its own: DATETIME, ID, CUSTOMER, and TOTALAMOUNT.

Elements that contain Data A document containing two orders 1/4/ Steve Moore /5/ Jane Wolf

Attributes Attributes are another way to enclose a piece of data in an XML document. An Attribute is part of an element. It usually modifies or is related to the information in the element. 1/4/ Attribute values are enclosed in quotes. You can use single or double quotes wherever needed.

CDATA The < character and the & character and throw off the XML parser. The following could cause a problem Jones & Williams CPA 1/4/ You can use the a CDATA element to handle this. CDATA tells the parser not to interpret or parse the characters in the CDATA element 1/4/

Abbreviated Close Tags For elements that do not contain data you can use abbreviated syntax. Jones & Williams CPA 1/4/200 instead of 1/4/200

XML Tools Microsoft XML Notepad – simple tool for creating XML us/dnxml/html/xmlpaddownload.asp

XML Tools XML Spy – full featured tool XML editor built into Visual Studio.Net

using the dom ado xml method example app w treeview? XML Tools XML Spy – full featured tool XML editor built into Visual Studio.Net