1 XML at a neighborhood university near you Innovation 2005 September 16, 2005 Kwok-Bun Yue University of Houston-Clear Lake.

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

1/7 ITApplications XML Module Session 8: Introduction to Programming with XML.
XML: Extensible Markup Language
XML & Data Structures for the Internet Yingcai Xiao.
ModelicaXML A Modelica XML representation with Applications Adrian Pop, Peter Fritzson Programming Environments Laboratory Linköping University.
©Silberschatz, Korth and Sudarshan10.1Database System Concepts W3C Activities HTML: is the lingua franca for publishing on the Web XHTML: an XML application.
Xerces The Apache XML Project Yvonne Yao. Introduction Set of libraries that provides functionalities to parse XML documents Set of libraries that provides.
1 COS 425: Database and Information Management Systems XML and information exchange.
Outline IS400: Development of Business Applications on the Internet Fall 2004 Instructor: Dr. Boris Jukic XML.
CS 898N – Advanced World Wide Web Technologies Lecture 22: Applying XML Chin-Chih Chang
COS 381 Day 16. Agenda Assignment 4 posted Due April 1 There was no resubmits of Assignment Capstone Progress report Due March 24 Today we will discuss.
September 15, 2003Houssam Haitof1 XSL Transformation Houssam Haitof.
MC 365 – Software Engineering Presented by: John Ristuccia Shawn Posts Ndi Sampson XSLT Introduction BCi.
4/20/2017.
CSE 6331 © Leonidas Fegaras XML Tools1 XML Tools Leonidas Fegaras.
XML at Work John Arnett, MSc Standards Modeller Information and Statistics Division NHSScotland Tel: (x2073)
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
1 Tools for Memory: Semantic Content (XML) Mahesh Chaudhari School of Computing and Informatics Department of Computer Science and Engineering Arizona.
Scientific Markup Languages Birds of a Feather A 10-Minute Introduction to XML Timothy W. Cole Mathematics Librarian & Professor of.
XML eXtensible Markup Language by Darrell Payne. Experience Logicon / Sterling Federal C, C++, JavaScript/Jscript, Shell Script, Perl XML Training XML.
Maziar Sanaii Ashtiani – SCT – EMU, Fall 2011/12.
XML and its applications: 4. Processing XML using PHP.
Structured-Document Processing Languages Spring 2011 Course Review Repetitio mater studiorum est!
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.
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 What is XML? XML v.s. HTML XML Components Well-formed and Valid Document Type Definition (DTD) Extensible Style Language (XSL) SAX and DOM.
XML BIS4430 – unit 10. XML Origins Extensible Markup Language (XML) 1998 Inspired by Standard Generalized Markup Language (SGML) and HTML. SGML defines.
SAX Parsing Presented by Clifford Lemoine CSC 436 Compiler Design.
Structured-Document Processing Languages Spring 2005 Course Review Repetitio mater studiorum est!
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.
Advanced Java Session 9 New York University School of Continuing and Professional Studies.
 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,
Intro. to XML & XML DB Bun Yue Professor, CS/CIS UHCL.
Chapter 27 The World Wide Web and XML. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.27-2 Topics in this Chapter The Web and the Internet.
1 XSLT An Introduction. 2 XSLT XSLT (extensible Stylesheet Language:Transformations) is a language primarily designed for transforming the structure of.
JSTL, XML and XSLT An introduction to JSP Standard Tag Library and XML/XSLT transformation for Web layout.
WEB BASED DATA TRANSFORMATION USING XML, JAVA Group members: Darius Balarashti & Matt Smith.
1 Some of my XML/Internet Research Projects CSCI 6530 October 5, 2005 Kwok-Bun Yue University of Houston-Clear Lake.
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.
Chapter 27 The World Wide Web and XML. Copyright © 2004 Pearson Addison-Wesley. All rights reserved.27-2 Topics in this Chapter The Web and the Internet.
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.
XML. What is XML? XML stands for EXtensible Markup Language.XML is a markup language much like HTML. XML was designed to describe data. XML was created.
XML and SAX (A quick overview) ● What is XML? ● What are SAX and DOM? ● Using SAX.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
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.
What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized.
1 Introduction JAXP. Objectives  XML Parser  Parsing and Parsers  JAXP interfaces  Workshops 2.
Computing & Information Sciences Kansas State University Friday, 20 Oct 2006CIS 560: Database System Concepts Lecture 24 of 42 Friday, 20 October 2006.
Structured-Document Processing Languages Spring 2004 Course Review Repetitio mater studiorum est!
©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.
C Copyright © 2011, Oracle and/or its affiliates. All rights reserved. Introduction to XML Standards.
7-Mar-16 Simple API XML.  SAX and DOM are standards for XML parsers-- program APIs to read and interpret XML files  DOM is a W3C standard  SAX is an.
 XML derives its strength from a variety of supporting technologies.  Structure and data types: When using XML to exchange data among clients, partners,
XML Extensible Markup Language
Extensible Markup Language (XML) Pat Morin COMP 2405.
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 Parsers Overview Types of parsers Using XML parsers SAX DOM
XML: Extensible Markup Language
Unit 4 Representing Web Data: XML
XML Related Technologies
Java XML IS
XML in Web Technologies
Database Processing with XML
XML Parsers Overview Types of parsers Using XML parsers SAX DOM
Chapter 20 – Extensible Markup Language (XML)
Presentation transcript:

1 XML at a neighborhood university near you Innovation 2005 September 16, 2005 Kwok-Bun Yue University of Houston-Clear Lake

9/10/2005Bun Yue: 2 Content What is XML? XML Modeling XML Parsing XML Transformation XML and Databases XML at UHCL Conclusions

9/10/2005Bun Yue: 3 What is XML? XML stands for eXtensible Markup Language. XML is a system for defining, validating, and sharing document formats. Standard organization: World Wide Web Consortium (W3C):

9/10/2005Bun Yue: 4 XML Basic Constructs XML uses tag elements and attributes to describe document structures and properties. Unlike HTML, XML is extensible. Authors can use XML to define a new language for a given application. XML is a meta-language.

9/10/2005Bun Yue: 5 A Simple XML Example Bun Yue Everybody Hello, welcome! XML Version must be in the first line. XML contents Root element

9/10/2005Bun Yue: 6 Why XML? XML captures semantic well. Simple. Text. Standard. Wide support. Validation. Abundance of tools.

9/10/2005Bun Yue: 7 Some Disadvantages Verbose Text Ordered tree model may not fit best

9/10/2005Bun Yue: 8 Some UHCL XML Applications Web Services: SOAP, UDDI, WSDL, etc. XHTML VoiceXML

9/10/2005Bun Yue: 9 Some UHCL XML Applications Wireless Markup Language (WML)

9/10/2005Bun Yue: 10 Some UHCL XML Applications Scalar Vector Graphics (SVG) A triangle fractal

9/10/2005Bun Yue: 11 Content What is XML? XML Modeling XML Parsing XML Transformation XML and Databases XML at UHCL Conclusions

9/10/2005Bun Yue: 12 XML Modeling Devise an XML vocabulary to capture an application. May use available modeling tools and languages, such as UML. XML basically uses an ordered tree model.

9/10/2005Bun Yue: 13 XML Tree Model XML file: Hi There Bye Document Root aProlog cbb An XML tree showing element nodes only

9/10/2005Bun Yue: 14 Syntax & Validation All XML document must be well-formed: satisfying basic syntax. XML documents may be validated by various schemas. Validation: –Cost: time and effort. –Benefit: increased reliability.

9/10/2005Bun Yue: 15 XML Validation Languages –Document Type Definition (DTD) –XML Schema –Schematron –Relax NG

9/10/2005Bun Yue: 16 Document Type Definition (DTD) A grammar to determine the validity of an XML document. An XML document satisfying the rules of a DTD is said to be validated. DTD is part of the XML language standard.

9/10/2005Bun Yue: 17 A Simple DTD <!ATTLIST person id ID #REQUIRED spouse IDREF #IMPLIED>

9/10/2005Bun Yue: 18 DTD Validation An XML document validated by the DTD: Adam Eva John

9/10/2005Bun Yue: 19 Not Validated Eva Adam John Jack

9/10/2005Bun Yue: 20 Limitations of DTD Schema languages have limited expressive power. DTD is simple and not expressive. Others are more expressive (and complicated): e.g. XML Schema.

9/10/2005Bun Yue: 21 Content What is XML? XML Modeling XML Parsing XML Transformation XML and Databases XML at UHCL Conclusions

9/10/2005Bun Yue: 22 XML Parsing A large collection of XML Parsers in various languages: Java, Perl, C#,… Two popular classes: –DOM (Document Object Model): Build an XML tree. –SAX (Simple API for XML): Event driven (push).

9/10/2005Bun Yue: 23 SAX XML Input is converted to a sequence of events (e.g. startElement, endElement, characters, …) Programmers define event handlers to handle the events.

9/10/2005Bun Yue: 24 SAX Example // Java public void startElement(String namespaceURI, String lName, // local name String qName, // qualified name Attributes attrs) throws SAXException { numElements++; // numElements is a data member. } // startElement

9/10/2005Bun Yue: 25 DOM DOM (Document Object Model): a W3C standard. A “platform- and language-neutral interface” to present documents. DOM parser parses an XML document and build an XML tree. DOM classes can then be used to access and manipulate the tree.

9/10/2005Bun Yue: 26 DOM Example try { // Java // Parse input XML file. DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance() DocumentBuilder builder = factory.newDocumentBuilder(); document = builder.parse(new File(argv[0])); System.out.println(“Name of root element of " + argv[0] + " = " + document.getDocumentElement().getLocalName())) } …

9/10/2005Bun Yue: 27 Content What is XML? XML Modeling XML Parsing XML Transformation XML and Databases XML at UHCL Conclusions

9/10/2005Bun Yue: 28 XML Transformation Transformation from XML to XML and other formats. Can use XML parsers. XSLT: XML Stylesheet Language/Transform.

9/10/2005Bun Yue: 29 XSLT Rule-based language for XML transformation. Contains a set of templates (rules) for identifying components to be acted on.

9/10/2005Bun Yue: 30 XSLT Template

9/10/2005Bun Yue: 31 XSLT Example An XSLT template to replace an element by, preserving its content:

9/10/2005Bun Yue: 32 Content What is XML? XML Modeling XML Parsing XML Transformation XML and Databases XML at UHCL Conclusions

9/10/2005Bun Yue: 33 Storage of XML XML can be stored as files or in database. Leading databases support XML storage: –Native XML Database –XML Enhanced Database

9/10/2005Bun Yue: 34 XQuery W3C Standard For effectively querying and retrieving information from a diversified XML sources. Similar to SQL for relational database.

9/10/2005Bun Yue: 35 XQuery Example {for $f in doc(“diagrams.xml")//figure return { $f/title } }

9/10/2005Bun Yue: 36 Content What is XML? XML Modeling XML Parsing XML Transformation XML and Databases XML at UHCL Conclusions

9/10/2005Bun Yue: 37 XML Related Courses CSCI 4230 Internet Application Development: started covering XML in Spring –Example project: using MS XML parser, parse XML weather information from an external site, retrieve its information, and present it in a specific HTML format.

9/10/2005Bun Yue: 38 XML Related Courses CSCI 5733 XML Application Development: started in Spring Complete coverage of details of this presentation + much more. Programming assignments in XML parsers, XSLT, XPath, WML, SVG, etc.

9/10/2005Bun Yue: 39 Capstone Projects Graduate capstone projects from external companies. Some XML project examples: –SVG –XML difference engine –XML based workflow

9/10/2005Bun Yue: 40 XML Research at UHCL Some examples: –Effective storage of XML in relational database. –Mapping of DTD to relational schema. –Software metrics for XML Schema.

9/10/2005Bun Yue: 41 Content What is XML? XML Modeling XML Parsing XML Transformation XML and Databases XML at UHCL Conclusions

9/10/2005Bun Yue: 42 Conclusions XML: wide potential for applications and research. UHCL is an early adopter. Many UCHL students are trained in XML.

9/10/2005Bun Yue: 43 Questions? Any Questions? Thanks!