M.Sc. of Advanced Software Engineering CO7206 System Reengineering XML & AST Many Slides are by Georgios Koutsoukos.

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

XML: Extensible 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 XML.
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.
XML XML What XML is and what it means to me as a Computer Scientist By: Derek Edwards CS 376 March 10, 2003.
INF201 Fall2010 Intro. to Info. Technologies Department of Informatics University at Albany – SUNY Original Source: w3schools.com Prepared by Xiao Liang,
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
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.
M.Sc. of Advanced Software Engineering CO7206 System Reengineering XPath Many Slides are by Georgios Koutsoukos.
Sistemi basati su conoscenza XML Prof. M.T. PAZIENZA a.a
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
XML Primer. 2 History: SGML vs. HTML vs. XML SGML (1960) XML(1996) HTML(1990) XHTML(2000)
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.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
1 Advanced Topics XML and Databases. 2 XML u Overview u Structure of XML Data –XML Document Type Definition DTD –Namespaces –XML Schema u Query and Transformation.
4/20/2017.
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.
 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.
16-1 The World Wide Web The Web An infrastructure of distributed information combined with software that uses networks as a vehicle to exchange that information.
Introduction to XML cs3505. References –I got most of this presentation from this site –O’reilly tutorials.
CREATED BY ChanoknanChinnanon PanissaraUsanachote
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Copyright © 2012 Accenture All Rights Reserved.Copyright © 2012 Accenture All Rights Reserved. Accenture, its logo, and High Performance Delivered are.
XML: Overview MIS 181.9: Service Oriented Architecture 2 nd Semester,
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.
Introduction to XML Eugenia Fernandez IUPUI. What is XML? From the World Wide Web Consortium (W3C) The Extensible Markup Language (XML) is the universal.
An Introduction to XML Presented by Scott Nemec at the UniForum Chicago meeting on 7/25/2006.
XML Overview. Chapter 8 © 2011 Pearson Education 2 Extensible Markup Language (XML) A text-based markup language (like HTML) A text-based markup language.
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 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
XHTML,XML M.Abdullah Mrian. What is the XHTML Why XHTML ?
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,
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.
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.
17 Apr 2002 XML Syntax: Documents Andy Clark. Basic Document Structure Element tags – Elements have associated attributes Text content Miscellaneous –
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
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 for Text Markup An introduction to XML markup.
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
Jennifer Widom XML Data Introduction, Well-formed XML.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
Unit 3 — Advanced Internet Technologies Lesson 11 — Introduction to XSL.
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.
Working with XML. Markup Languages Text-based languages based on SGML Text-based languages based on SGML SGML = Standard Generalized Markup Language SGML.
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.
XML Extensible Markup Language
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.
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.
XML Related Technologies
Database Processing with XML
XML Data Introduction, Well-formed XML.
CSE591: Data Mining by H. Liu
Presentation transcript:

M.Sc. of Advanced Software Engineering CO7206 System Reengineering XML & AST Many Slides are by Georgios Koutsoukos

Objectives  To give some knowledge about core technologies used in CARE  This lecture covers: –XML –AST

Outline  What is XML  How can XML be used  The importance of XML and its use in CARE  What is an AST  AST example and its importance in CARE

Related Readings  Al-Ekram & Kontogiannis, An XML-based Framework for Language Neutral Program Representation and Generic Analysis Available at: – based-framework-for-language-neutral-program-representation- and-analysis.pdf based-framework-for-language-neutral-program-representation- and-analysis.pdfhttp://swag.uwaterloo.ca/~rekram/publications/csmr2005--xml- based-framework-for-language-neutral-program-representation- and-analysis.pdf  Useful links: – –

What is XML  XML stands for eXtensible Markup Language  XML is a markup language much like HTML  XML is used to describe structured data  XML data is stored in plain-text format i.e software and hardware-independent  XML tags are not predifined. One must define its own tags.  XML may use a Document Type Definition (DTD) or an XML Schema to describe the data

XML Vs HTML  XML and HTML were designed with different goals: –XML was designed to describe data and to focus on what data is. –HTML was designed to display data and to focus on how data looks. HTML tags are predifined

How can XML be used  XML can be used to: –Separate data from its presentation –Exchange data between incompatible systems –Share data between different applications –Store data  In fact, currently XML is the de-facto standard in many software application areas such as Web content description, Web-Services and Communication Protocols (e.g SOAP) among many others.

XML Syntax (1)  XML Declaration contains: –Version of the XML specification –Character encoding of the document  XML Tags must: –Be case sensitive –Start with letter or underscore –Not contain whitespaces –Have an end Tag

XML Syntax (2)  Element Declaration –Elements must be properly nested –All XML documents must have a root element  Attribute Declaration –Atributes provide metadata for the element –Atributes must be enclosed in “” with no commas between –Same naming conventions as elements

An XML example The following is a very simple example of an XML document representing data of pets: Max Toula Max Toula

XML and L-CARE Why should one care about XML in order to use L-CARE? In fact one does not have to care about XML, but about XPath which is the language for identifying parts of XML documents. L-CARE uses the XPath language in order to write markers for identifying patterns of code. XPath shall be explained in a future class.

What is an AST  AST stands for Abstract Syntax Tree  Abstract Syntax Trees are the basic source code representations at the finest level of granularity.  AST representation provides the most detailed information from the source code.

AST example (1)  An XML document can be viewed as an AST containing different kinds of nodes with the most widely used being the root, elements, attributes and text. For the XML example given before, the tree structure is showed in the following slide:

AST example (2)

AST and CARE Why should one care about AST in order to use L-CARE? AST is a graphical form of representing the souce code in CARE and understanding it can be great, not only to understand the source code you are working on, but also to help you build XPath queries.

The following piece of code: public void tick() { theCurrentTime = Calendar.getInstance() ; if(theCurrentTime!=null){ notifyObservers();}}

Could be represented in XML as (1): <Statements> <Expression><FunctionOp><DotOp> </FunctionOp></Expression></Assignment>

Could be represented in XML as (2): <If><Expression> </BinaryOp></Expression><Then><FunctionOp> </FunctionOp></Then></If></Statements></Method>

Or by the following tree structure:

Key Points  XML is used by many tools as an attempt to describe data in an Universal way.  XML is used in CARE to represent source code and make marking and transforming it easier and more performant.  ASTs are graphical representations of source code and are useful to understand it.  There is a close connection between an XML representation and the corresponding AST.