XML: The new standard -Eric Taylor.

Slides:



Advertisements
Similar presentations
INF201 Fall2010 Intro. to Info. Technologies Department of Informatics University at Albany – SUNY Original Source: w3schools.com Prepared by Xiao Liang,
Advertisements

CSE 190: Internet E-Commerce Lecture 17: XML, XSL.
IS 373—Web Standards Todd Will
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Introduction to XML This material is based heavily on the tutorial by the same name at
Chapter 12 Creating and Using XML Documents HTML5 AND CSS Seventh Edition.
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
 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.
What is XML? XML stands for EXtensible Markup Language
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
XSLT for Data Manipulation By: April Fleming. What We Will Cover The What, Why, When, and How of XSLT What tools you will need to get started A sample.
XML eXtensible Markup Language w3c standard Why? Store and transport data Easy data exchange Create more languages WSDL (Web Service Description Language)
Introduction to XML Eugenia Fernandez IUPUI. What is XML? From the World Wide Web Consortium (W3C) The Extensible Markup Language (XML) is the universal.
XML BIS4430 – unit 10. XML Origins Extensible Markup Language (XML) 1998 Inspired by Standard Generalized Markup Language (SGML) and HTML. SGML defines.
XML Extensible Markup Language. What is XML? An infrastructure for describing text and data Developed by W3C(the World Wide Web Consortium)
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 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
XML TUTORIAL Portions from w3 schools By Dr. John Abraham.
Electronic Commerce COMP3210 Session 4: Designing, Building and Evaluating e-Commerce Initiatives – Part II Dr. Paul Walcott Department of Computer Science,
1 Dr Alexiei Dingli XML Technologies XML Advanced.
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.
Consuming eXtensible Markup Language (XML) feeds.
An Introduction to XML Sandeep Bhattaram
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.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
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 –
When we create.rtf document apart from saving the actual info the tool saves additional info like start of a paragraph, bold, size of the font.. Etc. This.
Representing data with XML SE-2030 Dr. Mark L. Hornick 1.
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.
Martin Kruliš by Martin Kruliš (v1.1)1.
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 Extensible Markup Language
XML DOM Week 11 Web site:
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.
First Prototype Presentation, Sprint Review and the Game Dev Production Process CS 153P Session 8.
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.
COMP9321 Web Application Engineering Semester 1, 2017
XML University Of Benghazi IT Faculty Computer Networks and Communications Department Introduction to Internet Programming(CN281)
XML BASICS.
Unit 4 Representing Web Data: XML
Unit M Programming Web Pages with
XML QUESTIONS AND ANSWERS
Database Systems Week 12 by Zohaib Jan.
2017, Fall Pusan National University Ki-Joune Li
XML in Web Technologies
XML stands for Extensible Markup Language.
Paul Gustavson SISO XML Namespaces Paul Gustavson
Chapter 7 Representing Web Data: XML
Week 11 Web site: XML DOM Week 11 Web site:
XML Data Introduction, Well-formed XML.
XML – Basic Concepts (modified version from Dr. Praveen Madiraju)
More Sample XML By Sadia Anjum.
Introduction to XML.
XML Introduction By Hongming Yu Feb 6th, 2002.
Web Based Applications
Javascript & jQuery XML.
What is XML?.
CMP 051 XML Introduction Session IV Chapter 12 – XML Namespaces
XML and its applications: 4. Processing XML using PHP
CMP 051 XML Introduction Session IV Chapter 12 – XML Namespaces
eXtensible Markup Language XML
Presentation transcript:

XML: The new standard -Eric Taylor

Overview What is XML? Why use XML? Details of the language Incorporating XML Business Application Small Assignment

What is XML? eXtensible Markup Language Markup language like HTML Designed to carry data, not display it W3C recommended World Wide Web Consortium

What is XML? Plain text. What does it do? Not an independent language. The Design: Compatibility Straightforward Fast Wide support

Why use XML? Simplifies HTML changes based on data changes. Standardized data sharing. Too many possibilities without it. Incompatible applications not affected. Hardware/Software independent Minor exceptions

Language Details Tag based. Unlike HTML, all tags are user-defined. <random_tag_name> data_to_be_stored </random_tag_name> Data stored between tags, or within tags as attributes. Attributes are normally used for information that describes the tag itself, not necessarily the information you want to store. Ex: <book internal_id=“11421” />

Language Details Tree structure <library> <book internal_id=“11421”> <name> A Game of Thrones </name> <isbn> 123456789 </isbn> … </book> <book internal_id=“11422”> <name> A Clash of Kings </name> <isbn> 123456788 </isbn> </library>

Language Details

Language Details Example 2: From w3schools.com

Language Details Syntax Details: Case sensitive tags. Defined values Quoted values Nesting: bold, italic, etc… Naming rules

Language Details Namespaces: Think of <include> statements. Allows reference to different types of data with similar names. Allows reference to custom data-types. Integer, decimal, string fields, etc, with restrictions and/or patterns.

Language Details <root> <h:table xmlns:h="http://www.w3.org/TR/html4/"> <h:tr> <h:td>Apples</h:td> <h:td>Bananas</h:td> </h:tr> </h:table> <f:table xmlns:f="http://www.w3schools.com/furniture"> <f:name>African Coffee Table</f:name> <f:width>80</f:width> <f:length>120</f:length> </f:table> </root>

Language Details Validation: How do we know an XML document is correct? How do we know we are getting the information we want? “Well formed” Adheres to syntax rules Easily done with XML software and processing code. Validity: Answers the “are we getting what we want?” question. Follows the given XML schema (known as an XSD).

Language Details What is a schema (XSD)? XML file with the extension .xsd Dictates the allowed structure of a corresponding XML file. Defines possible fields, field values, etc. Used in process of ‘Schema Validations’. Pass or fail check if the corresponding XML file contains the appropriate information. Structure and data types, NOT content (elements vs. their value).

Language Details XML File: <note> <to>Tove</to> <from>Jani</from> <heading>Reminder</heading> <body>Don't forget me this weekend!</body> </note> XSD File: <xs:element name="note"> <xs:complexType> <xs:sequence> <xs:element name="to" type="xs:string"/> <xs:element name="from" type="xs:string"/> <xs:element name="heading" type="xs:string"/> <xs:element name="body" type="xs:string"/> </xs:sequence> </xs:complexType> </xs:element>

Incorporating XML Parsing XML to use it: DOM (Document Object Model). Standard way for accessing and manipulating XML documents. xmlDoc - the XML document created by the parser. getElementsByTagName(“tag_name")[0] - the first <tag_name> element childNodes[0] - the first child of the <tag_name> element (the text node) nodeValue - the value of the node (the text itself) some_variable=xmlDoc.getElementsByTagName(“book”)[0].childNodes[0].nodeValue;

Incorporating XML Parsing commonly done via JavaScript in web applications. Java can import libraries to use the standard DOM for parsing.

Incorporating XML From w3schools.com

Incorporating XML XSLT used to display and format XML. Basically “transforming XML to HTML before it is displayed by the browser”.

XML in Practice Allows for extension to legacy systems. Create a new ‘front end’ process to make the data match to legacy. Things to consider: Use similar XML software to eliminate small differences. Establish a common schema Schema validations on both ends of transmission. Business logic to process the data.

Small Assignment: Download the 30 day free trial of XML Spy. (very quick installation) Go through the ‘getting started’ tutorial. Create a sample schema based on some of the previous examples. Create an XML document based on the schema, and validate. Load the XML file into an HTML document and display the values. Use Tomcat, or any IDE with a preview function.

References http://www.tizag.com/xmlTutorial/ www.w3schools.com Amiano, Mitch, Conrad D'cruz, Kay Ethier, and Michael D. Thomas. XML Problem-Design-Solution. Indianapolis: Wiley Inc, 2006.