Using XML to present computer program Qingsong Yao Qingsong Yao Department of Computer Science Department of Computer Science York University York University.

Slides:



Advertisements
Similar presentations
Copyright © 2003 Pearson Education, Inc. Slide 8-1 Created by Cheryl M. Hughes, Harvard University Extension School Cambridge, MA The Web Wizards Guide.
Advertisements

DOCUMENT TYPES. Digital Documents Converting documents to an electronic format will preserve those documents, but how would such a process be organized?
XML/EDI Overview West Chester Electronic Commerce Resource Center (ECRC)
XML: Styling and Transformation Dr Andy Evans. Multiple views Nice thing is that this data can be styled in lots of different ways using stylesheets.
1 Introduction to XML. XML eXtensible implies that users define tag content Markup implies it is a coded document Language implies it is a metalanguage.
XML Parsing Using Java APIs AIP Independence project Fall 2010.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application.
XML A brief introduction ---by Yongzhu Li. XML --- a brief introduction 2 CSI668 Topics in System Architecture SUNY Albany Computer Science Department.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic XML.
XML by Jon Pearce. What is XML? XML = eXstensible Markup Language = a meta language for defining markup languages. Examples: MathML, SVG (Scalable Vector.
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application with a clean migration path from HTML 4.01 CSS: Style sheets.
XML Fundementals XML vs.. HTML XML vs.. HTML XML Document (elements vs. attributes) XML Document (elements vs. attributes) XML and RDBMS XML and RDBMS.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 XML Taken from Chapter 7.
1 Tools for Memory: Semantic Content (XML) Mahesh Chaudhari School of Computing and Informatics Department of Computer Science and Engineering Arizona.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
1 XML at a neighborhood university near you Innovation 2005 September 16, 2005 Kwok-Bun Yue University of Houston-Clear Lake.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
School of Computing and Management Sciences © Sheffield Hallam University To understand the Oracle XML notes you need to have an understanding of all these.
 2003 Prentice Hall, Inc. All rights reserved. Chapter 20 – Extensible Markup Language (XML) Outline 20.1 Introduction 20.2 Structuring Data 20.3 XML.
MSc IT Multimedia XML & XSLT P. Muneesawang. 2 Outline Why XML XSL.
XML Overview. Chapter 8 © 2011 Pearson Education 2 Extensible Markup Language (XML) A text-based markup language (like HTML) A text-based markup language.
Extensible Markup and Beyond
XML and Web Services November 21, 2005 Leo Putra Mardjuki Christopher William Lee Corey Fung Chan.
XML BIS4430 – unit 10. XML Origins Extensible Markup Language (XML) 1998 Inspired by Standard Generalized Markup Language (SGML) and HTML. SGML defines.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
Lecture 13 – XML and JSON SFDV3011 – Advanced Web Development Reference: 1.
XML Basics Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Extensible Meta Language Markup Language.
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.
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
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 Extensible Markup Language
XML – An Introduction Structured Data Mark-up James McCartney CSCE 590, Cluster and Grid Computing.
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.
XML Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
Web Technologies COMP6115 Session 4: Adding a Database to a Web Site Dr. Paul Walcott Department of Computer Science, Mathematics and Physics University.
ISO/TC 211 WG4 WI 18 Encoding Foil no. 1 Annex C XML and XMI David Skogan SINTEF Telecom and Informatics
An Introduction to XML Paul Donohue May 8th 2002 Hotel Senator Zürich.
XML and SVG from PQL By Dave Doulton Computing Services University of Southampton.
XML and Its Applications Ben Y. Zhao, CS294-7 Spring 1999.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
XML stands for Extensible Mark-up Language XML is a mark-up language much like HTML XML was designed to carry data, not to display data XML tags are not.
1 “Universal Data-Speak”: The eXtensible Markup Language Zack Ives CSE 590DB, Winter 2000 University of Washington 3 January 2000.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
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 –
COP 3813 Intro to Internet Computing Prof. Roy Levow XML.
GenX- XML Mapping of GenCAM Andy Dugenske Andy Scholand Manufacturing Research Center Georgia Institute of Technology January 23, 1999.
What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized.
Representing data with XML SE-2030 Dr. Mark L. Hornick 1.
14/05/2003Christiane Schmidt1 XML – application A presentation about different examples of use.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C - The World Wide Web Consortium W3C - The World Wide Web Consortium.
Martin Kruliš by Martin Kruliš (v1.1)1.
Working with XML. Markup Languages Text-based languages based on SGML Text-based languages based on SGML SGML = Standard Generalized Markup Language SGML.
XML Tools (Chapter 4 of XML Book). What tools are needed for a complete XML application? n Fundamental components n Web infrasructure n XML development.
XML for Scientific Applications Marlon Pierce ERDC Tutorial August
XML and Distributed Applications By Quddus Chong Presentation for CS551 – Fall 2001.
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.
Beyond HTML: Extensible Markup Language (XML)
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.
Metadata Michael J. Watts
XML Related Technologies
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
XML Data Introduction, Well-formed XML.
More Sample XML By Sadia Anjum.
IEEM 5352 E-Enterprise Integration
Chapter 20 – Extensible Markup Language (XML)
eXtensible Markup Language (XML)
Presented by: Jacky Ma Date: 11 Dec 2001
CSE591: Data Mining by H. Liu
Presentation transcript:

Using XML to present computer program Qingsong Yao Qingsong Yao Department of Computer Science Department of Computer Science York University York University

What is XML? b eXtensible Markup Language Language for creating other languages Language for creating other languages b XML is extensible (compared to HTML) user can create new tag and use DTD or Schema to describe the structure of XML file user can create new tag and use DTD or Schema to describe the structure of XML file b XML separate content from presentation

WHY XML? b three prerequisites for universal computing: global communication, portable software, and portable data  Java : platform-independent program  Internet :platform-independent networking  XML : platform-independent data.

An example of XML and DTD Bookstore.XML <!DOCTYPE bookstore SYSTEM “Bookstore.DTD”> Beginning XML David Hunter Professional XML Wrox Author Team Bookstore.DTD <!ATTLIST bookstore name (#PCDATA) > <!ELEMENT book (name,author+,price) >

XML STANDARD XML STANDARD b MathML MathML Mathematical Markup Language Mathematical Markup Language b SVG (Scalable Vector Graphics) SVG (Scalable Vector Graphics) SVG (Scalable Vector Graphics) Describe two-dimensional graphics Describe two-dimensional graphics b XML QUERY XML QUERY XML QUERY Access,query and manipulate the XML Access,query and manipulate the XML b RDF(Resource Description Framework) RDF(Resource Description Framework) RDF(Resource Description Framework) Interoperable,machine understandable metadata Interoperable,machine understandable metadata b more standard can be found on W3C W3C

Using XML b Data Exchange and Translation b e-Commerce Messaging (B2B) b Identical description of data format b Powerful Search Engine and more… and more…

b XML can be represent by an DOM tree Programming With XML bookstore name=“chapters” book authorpricenameauthor price name Beginning XML David Hunter Professional XMLWrox Author Team74.95 element attribute value

Using XML to present computer language b Background most computer languages have the same data structure and librarymost computer languages have the same data structure and library – integer, string,array, and object.. – Searching and Sorting algorithm… b Goals Present logic,algorithm or program using XML Present logic,algorithm or program using XML Can be transfered into other languages Can be transfered into other languages

Data Flow XML Parser Optimizer Language Generator Dom Pascal Java C file xml uml corba xml Xml Transformer b XML Transformer read source files and convert it to XML File b XML Parser read the XML file, converting it to a DOM tree b XML Optimizer can take grammar check and optimize the DOM tree a Language Generator generate source code from the DOM tree

Key Point b For Object -Orient language, use Java’s grammar to define DTD b For Non-Object-Orient language,use Pascal ‘s grammar b Each element should have an attribute “ID” in order to be referenced

DTD Example <!ATTLIST procedure id (ID|IDREF|IDREFS)

XML Language Example

Pascal and C Language File PASCAL Function square(a:integer):integer begin var c: integer; c:=a * a; result:=c; end; C int square(int a) { int c; c=a*a; return c; }

References b W3C XML GROUP (xml standard) b The XML Industry Portal b IBM XML (xml tools and articles) b SUN XML (java and XML)