Database Systems – SQL XML XML stands for Extensible Markup Language

Slides:



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

SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
IS 373—Web Standards Todd Will
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
Extensible Markup Language XML MIS 520 – Database Theory Fall 2001 (Day) Lecture 14.
XML CS 105. What is XML? XML stands for Extensible Markup Language. XML is a markup language like HTML. XML was designed to describe data. You must define.
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
XML Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
Introduction to XML: Yong Choi CSU Bakersfield.
15-Jul-15 JSON. JSON example “JSON” stands for “JavaScript Object Notation” Despite the name, JSON is a (mostly) language-independent way of specifying.
XML Basics Hope Greenberg Center for Teaching & Learning.
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.
Creating a Simple Page: HTML Overview
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
Creating a Basic Web Page
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
 Introduction to XML Introduction to XML  Features of XML Features of XML  Syntax of XML Syntax of XML  Syntax rules of XML document Syntax rules.
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
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 Syntax - Writing XML and Designing DTD's
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,
10/15/20151 XML. 10/15/20152 Mark-up Languages Digitalizing information Content Format SGML HTML XML RDF OWL …
How do I use HTML and XML to present information?.
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.
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.
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.
XP 1 Creating an XML Document Developing an XML Document for the Jazz Warehouse XML Tutorial.
Appendix C: Brief Overview of XML. ©SoftMoore ConsultingSlide 2 What is XML? The eXtensible Markup Language (XML) is a meta-markup language; i.e., a language.
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.
1 Credits Prepared by: Rajendra P. Srivastava Ernst & Young Professor University of Kansas Sponsored by: Ernst & Young, LLP (August 2005) XBRL Module Part.
An Introduction to XML Sandeep Bhattaram
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 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.
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.
Copyright © 2003 Pearson Education, Inc. Slide 1-1 Created by Cheryl M. Hughes The Web Wizard’s Guide to XHTML by Cheryl M. Hughes.
ASHIMA KALRA  INTRODUCTION OF XML INTRODUCTION OF XML  XML FEATURES XML FEATURES  XML SYNTAX XML SYNTAX  XML ELEMENTS XML ELEMENTS  XML ATTRIBUTES.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
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.
Dave Salinas. What is XML? XML stands for eXtensible Markup Language Markup language, like HTML HTML was designed to display data, whereas XML was designed.
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
PART 1 XML Basics. Slide 2 Why XML Here? You need to understand the basics of XML to do much with Android All of they layout and configuration files are.
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.
XML Databases Presented By: Pardeep MT15042 Anurag Goel MT15006.
Extensible Markup Language (XML) Pat Morin COMP 2405.
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.
INP150: Basic HTML Instructor: Paul J. Millis
The XML Language.
WEBSITE DESIGN Chp 1
Creating an XML Document
Javascript & jQuery XML.
What is XML?.
Allyson Falkner Spokane County ISD
Review of XML IST 421 Spring 2004 Lecture 5.
Extensible Markup Language (XML)
Presentation transcript:

Database Systems – SQL XML XML stands for Extensible Markup Language It describes data and can be self-descriptive. XML doesn’t do anything, it simply structures and stores data for sending. XML is a hierarchical set of entities. An entity is one or more elements. An element contains one or more attributes in addition to text. XML tags are similar to HTML tags. Observe the syntax to define a simple element in XML: <ElementName></ElementName> Just like HTML, an element is opened with a <, the name, and a > tag and closed with a <, /, the name, and a > tag. The text in between can be any length.

Database Systems – SQL XML Elements in XML must be named according to the following rules: An element name is composed of letters, numbers or other characters. Names may not start with a number or other character. Names may not start with the letters xml in any form of capitalization. Names may not contain spaces. In addition, it is a good idea to subscribe to the same naming rules used by your database. This is obviously an issue if you are passing data back and forth from database to database, but you can use a subset of the rules that are generally compatible with most databases.

Database Systems – SQL XML Attributes can be added to an element inside the opening tag using the following syntax: <ElementName AttributeName=“AttributeValue”>Text</ElementName> There is no limit to the number of attributes that can be added to an element. Multiple attributes are separated by a space. <ElementName Attribute1=“Value1” Attribute2=“Value2” >Text</ElementName> Attributes must have quotation marks. Either single of double quotes are expectable. If you want to imbed a single or double quote within your attribute value, do so by using the other quote to enclose the value, i.e. <Yankees Attribute1=“Manager’s Name”>Yankees Rock</Yankees>

Database Systems – SQL XML The choice of using an attribute vs. a child element is up to you. The following two Elements are equivalent: <YANKEES><MANAGER>Joe Torre</MANAGER> <SHORTSTOP>Derek Jeter</SHORTSTOP> <CATCHER>Jorge Posada</CATCHER> </YANKEES> <YANKEES MANAGER=“Joe Torre” SHORTSTOP=“Derek Jeter” CATCHER=“Jorge Posada”></YANKEES> One issue with attributes is they can not contain multiple values, i.e <YANKEES><PITCHER>Roger Clemens</PITCHER> <PITCHER>Mariano Rivera</PITCHER> <PITCHER>Mike Mussina</PITCHER></YANKEES>

Database Systems – SQL XML Note, tags in XML are case sensitive, therefore: <Incorrect>This is incorrect</INCORRECT> <Correct>This is correct</Correct>

Database Systems – SQL XML XML must be properly nested. In HTML, sometimes you can nest improperly and the code still works, i.e. <B><I>THE YANKEES WIN!</B></I> However, in XML this does not work. You must nest properly, i.e. <B><I>THE YANKEES WIN!</I></B>

Database Systems – SQL XML Within XML whitespace is maintained. This is different than HTML. For example: <Message>THE YANKEES WIN! THE YANKEES WIN!</Message> The value of message is “THE YANKEES WIN! THE YANKEES WIN!” Comments in XML use the following syntax: <!-- Your comment here -->