VCE IT Theory Slideshows by Mark Kelly 2016-2019 study design By Mark Kelly, vceit.com, Begin.

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.
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.
SPECIAL TOPIC XML. Introducing XML XML (eXtensible Markup Language) ◦A language used to create structured documents XML vs HTML ◦XML is designed to transport.
An Introduction to XML Based on the W3C XML Recommendations.
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.
INF201 Fall2010 Intro. to Info. Technologies Department of Informatics University at Albany – SUNY Original Source: w3schools.com Prepared by Xiao Liang,
IS 373—Web Standards Todd Will
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
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.
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.
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
XML introduction to Ahmed I. Deeb Dr. Anwar Mousa  presenter  instructor University Of Palestine-2009.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Pemrograman Berbasis WEB XML -Aurelio Rahmadian- Sumber: w3cschools.com.
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:
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 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.
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,
How do I use HTML and XML to present information?.
CSC 330 E-Commerce Teacher Ahmed Mumtaz Mustehsan Ahmed Mumtaz Mustehsan GM-IT CIIT Islamabad GM-IT CIIT Islamabad CIIT Virtual Campus, CIIT COMSATS Institute.
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.
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.
1 Dr Alexiei Dingli XML Technologies XML. 2 XML stands for EXtensible Markup Language XML is a markup language much like HTML XML was designed to carry.
Waqas Anwar Next SlidePrevious Slide. Waqas Anwar Next SlidePrevious Slide XML XML stands for EXtensible Markup Language.
XML Documents Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Elements Attributes Comments PI Document.
WEB APPLICATION DEVELOPMENT For More visit:
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 Credits Prepared by: Rajendra P. Srivastava Ernst & Young Professor University of Kansas Sponsored by: Ernst & Young, LLP (August 2005) XBRL Module Part.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
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.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
Well Formed XML The basics. A Simple XML Document Smith Alice.
Introduction to XML XML – Extensible Markup Language.
ASHIMA KALRA  INTRODUCTION OF XML INTRODUCTION OF XML  XML FEATURES XML FEATURES  XML SYNTAX XML SYNTAX  XML ELEMENTS XML ELEMENTS  XML ATTRIBUTES.
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
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.
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin.
VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin © Scott Adams.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
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.
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.
VCE IT Theory Slideshows by Mark Kelly study design
VCE IT Theory Slideshows by Mark Kelly study design
VCE IT Theory Slideshows by Mark Kelly study design Test Data
Javascript & jQuery XML.
What is XML?.
Presentation transcript:

VCE IT Theory Slideshows by Mark Kelly study design By Mark Kelly, vceit.com, Begin

XML = extensible markup language Stores and transports data between all sorts of software Uses metatags to give data structure and meaning Simpler CSV (comma separated value) data files only contain raw data. XML has field names, structure. Plain text: easy to edit and read by humans and software. 2VCE IT slideshows © Mark Kelly, vceit.com

3

4 Explains its own format

5VCE IT slideshows © Mark Kelly, vceit.com Notice the structure? Closing tag

6VCE IT slideshows © Mark Kelly, vceit.com Hierarchical

7VCE IT slideshows © Mark Kelly, vceit.com Closing tag Opening tag

8VCE IT slideshows © Mark Kelly, vceit.com Opening + closing tags with content = an element

Unlike HTML tags, which are pre-defined, XML tags are created by the author of the data. – “Price” could have been called “Cost” earlier. XML is extensible – new data fields can be later added, and existing software could still read and understand it. Its format is completely universal and open-source. No competing and incompatible file formats that have to be translated before they can be read. 9VCE IT slideshows © Mark Kelly, vceit.com

XML data contains no information about how the data should be presented. The same XML data can be displayed in many different ways. Large data stores (e.g. weather bureau) often export data in XML format so it can be read by anyone. 10VCE IT slideshows © Mark Kelly, vceit.com

E.g. a newsfeed may be exported like this: 11VCE IT slideshows © Mark Kelly, vceit.com

XML documents can have a complex hierarchical tree-like structure 12VCE IT slideshows © Mark Kelly, vceit.com

13VCE IT slideshows © Mark Kelly, vceit.com The optional declaration (or prologue or ‘prolog’) announces the XML version (1.0) and character encoding scheme (UTF-8) The root element must exist An attribute (‘lang’) can provide further information about the element (‘title’) Every element must have a closing tag XML tags are case- sensitive: “year” is a different tag to “Year”

14VCE IT slideshows © Mark Kelly, vceit.com XML elements must be properly nested. A child element must be closed before its parent is closed. This is illegal…

15VCE IT slideshows © Mark Kelly, vceit.com Do not use XML reserved characters inside an XML element have special meanings to XML parsers (decoders) Use these pre-defined replacements instead of reserved characters

16VCE IT slideshows © Mark Kelly, vceit.com Insert comments in XML using the same syntax as used in HTML But do not use two consecutive dashes within a comment.

17VCE IT slideshows © Mark Kelly, vceit.com Element names: are invented by the data’s author and can be anything except they cannot start with the letters ‘xml’ (uppercase or lowercase) are case-sensitive must start with a letter or underscore can contain letters, digits, underscores, (and hyphens and full stops, but these are discouraged) cannot contain spaces

18VCE IT slideshows © Mark Kelly, vceit.com Element names should preferably: Be short but meaningful Not contain hyphens, colons or full stops which may be misinterpreted by some software Use CamelCase if multiple words make up an element’s name

19VCE IT slideshows © Mark Kelly, vceit.com In example 1, gender is an attribute. In example 2, gender is an element. They both provide exactly the same data. You can use attributes or elements. (Attribute data must be in single or double quotes.) Example 1Example 2

20VCE IT slideshows © Mark Kelly, vceit.com BUT IT MAY BE BETTER TO AVOID USING XML ATTRIBUTES attributes cannot contain multiple values (elements can) attributes cannot contain tree structures (elements can) attributes are not easily expandable (for future changes) This is legal but not good… This is better…

21VCE IT slideshows © Mark Kelly, vceit.com But it’s OK to use attributes to provide data about the data. (metadata). Below, the id attribute (acting like a key field in a database) describes the note. The actual data IN the note are stored as elements.

22VCE IT slideshows © Mark Kelly, vceit.com In example 1, date is stored as a single value In example 2, date is broken into its components. They both provide exactly the same data. But accessing year, month and day will be far easier using example 2’s field schema Example 1Example 2

23VCE IT slideshows © Mark Kelly, vceit.com Raw XML files can be loaded by lots of programs, but what do the programs show? A very dumb text editor…A clever text editor…

24VCE IT slideshows © Mark Kelly, vceit.com Raw XML files can be loaded by lots of programs, but what do the programs show? A Chrome browser

25VCE IT slideshows © Mark Kelly, vceit.com Why do raw XML files get displayed so horribly? XML files only contain raw data. They don’t contain any formatting information (as a database report or a webpage’s CSS file would) So you could attach a stylesheet like a CSS file to provide formatting data to an XML file

26VCE IT slideshows © Mark Kelly, vceit.com Since formatting XML with CSS is not recommended, you can alternatively use Javascript, or a XSLT translator file

27VCE IT slideshows © Mark Kelly, vceit.com XSLT (eXtensible Stylesheet Language Transformations) is the best style sheet language for XML. – XSLT is far more sophisticated than CSS. – With XSLT you can add/remove elements and attributes to or from the output file. – You can rearrange and sort elements, perform tests, and decide which elements to display.

28VCE IT slideshows © Mark Kelly, vceit.com Remember the previous breakfast menu XML?

29VCE IT slideshows © Mark Kelly, vceit.com We can use this XSLT stylesheet to format the data…

30VCE IT slideshows © Mark Kelly, vceit.com And we get this…

31VCE IT slideshows © Mark Kelly, vceit.com XML is good for data storage and transport. Try it today.

References 32VCE IT slideshows © Mark Kelly, vceit.com

Mark Kelly vceit.com These slideshows may be freely used, modified or distributed by teachers and students anywhere but they may NOT be sold. they must NOT be redistributed if you modify them. This is not a VCAA publication and does not speak for VCAA. Portions (e.g. exam questions, study design extracts, glossary terms) may be copyright Victorian Curriculum and Assessment Authority and are used with permission for educational purposes. Thanks, guys! VCE IT THEORY SLIDESHOWS study design 33 VCE IT slideshows © Mark Kelly, vceit.com

Because you’ve been so good, here’s a picture you can look at while your teacher works out what to do next Visit vceit.com for more goodies 34 The history of hard disks