ANTS - Technologies1 For possible use in the MIC-ANTS project. Jonathan Sprinkle Institute for Software Integrated Systems Vanderbilt University 4 October,

Slides:



Advertisements
Similar presentations
Connecting to Databases. relational databases tables and relations accessed using SQL database -specific functionality –transaction processing commit.
Advertisements

Lecture plan Information retrieval (from week 11)
 Fundamentals of Web Design.  Describe the history and theory of XHTML  Understand the rules for creating valid XHTML documents  Apply a DTD to an.
History Leading to XHTML
JNDI Java Naming Directory Interface JNDI is an API specified in Java that provides naming and directory functionality to applications written in Java.
3 November 2008CIS 340 # 1 Topics To define XML as a technology To place XML in the context of system architectures.
XML Syntax Lecture 2 – 06/25/02. XML Building Blocks XML Declaration Document Type Declaration Elements Attributes Comments Entities Processing Instructions.
1 C. Shahabi Application Programming for Relational Databases Cyrus Shahabi Computer Science Department University of Southern California
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
1 The Amazing Group 13 Parser Generator Jon Schmid Matthew Tong Justin Ward.
Introducing XHTML: Module B: HTML to XHTML. Goals Understand how XHTML evolved as a language for Web delivery Understand the importance of DTDs Understand.
Jennifer Widom XML Data XML Schema. Jennifer Widom XML Schema “Valid” XML Adheres to basic structural requirements  Also adheres to content-specific.
Jennifer Widom XML Data DTDs, IDs & IDREFs. Jennifer Widom DTDs, IDs & IDREFs “Well-Formed” XML Adheres to basic structural requirements Single root element.
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.
Introduction to XML: Part I By Sandeep Jangity CS 157B, Section 2 Dr. Lee.
© Wang Bin 2004 JDBC ----Java Database Connectivity.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
Overcoming the limitation of XML Documentation Type Definition XML schema generator CS689 Hae-Soon Kwon 11/16/2000.
XML eXtensible Markup Language by Darrell Payne. Experience Logicon / Sterling Federal C, C++, JavaScript/Jscript, Shell Script, Perl XML Training 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.
CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Address: Course Page:
XML BIS4430 – unit 10. XML Origins Extensible Markup Language (XML) 1998 Inspired by Standard Generalized Markup Language (SGML) and HTML. SGML defines.
XP 1 DECLARING A DTD A DTD can be used to: –Ensure all required elements are present in the document –Prevent undefined elements from being used –Enforce.
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.
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.
Tutorial 1: XML Creating an XML Document. 2 Introducing XML XML stands for Extensible Markup Language. A markup language specifies the structure and content.
10/15/20151 XML. 10/15/20152 Mark-up Languages Digitalizing information Content Format SGML HTML XML RDF OWL …
Technical Aspects of SIARD “SIARD under the hood” 10. April 2003 / Stephan Heuscher.
1 Chapter 10: XML What is XML What is XML Basic Components of XML Basic Components of XML XPath XPath XQuery XQuery.
JSTL, XML and XSLT An introduction to JSP Standard Tag Library and XML/XSLT transformation for Web layout.
XML Extensible Markup Language
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
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.
Java Database Connectivity (JDBC). Topics 1. The Vendor Variation Problem 2. SQL and Versions of JDBC 3. Creating an ODBC Data Source 4. Simple Database.
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.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Understanding How XML Works Ellen Pearlman Eileen Mullin Programming the.
XML Introduction. What is XML? XML stands for eXtensible Markup Language XML stands for eXtensible Markup Language XML is a markup language much like.
The eXtensible Markup Language (XML). Presentation Outline Part 1: The basics of creating an XML document Part 2: Developing constraints for a well formed.
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 – A Quick Introduction Kerry Raymond (stolen from others)
C# and Windows Programming XML Processing. 2 Contents Markup XML DTDs XML Parsers DOM.
CS 157B: Database Management Systems II February 11 Class Meeting Department of Computer Science San Jose State University Spring 2013 Instructor: Ron.
INFSY 547: WEB-Based Technologies Gayle J Yaverbaum, PhD Professor of Information Systems Penn State Harrisburg.
12/6/2015B.Ramamurthy1 Java Database Connectivity B.Ramamurthy.
UNIT III - JDBC JDBC Overview – JDBC implementation – Connection class – Statements - Catching Database Results, handling database Queries. Networking–
Dr Gordon Russell, Napier University Unit Embedde SQL - V2.0 1 Embedded SQL Unit 5.1.
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.
Introduction to XML XML – Extensible Markup Language.
1 Introduction JAXP. Objectives  XML Parser  Parsing and Parsers  JAXP interfaces  Workshops 2.
XML DTD. XML Validation XML with correct syntax is "Well Formed" XML. XML validated against a DTD is "Valid" XML.
XP Tutorial 9New Perspectives on HTML and XHTML, Comprehensive 1 Working with XHTML Creating a Well-Formed Valid Document Tutorial 9.
Basics of JDBC Session 14.
Tutorial 9 Working with XHTML. New Perspectives on HTML, XHTML, and XML, Comprehensive, 3rd Edition 2 Objectives Describe the history and theory of XHTML.
A Presentation Presentation On JSP On JSP & Online Shopping Cart Online Shopping Cart.
CITA 330 Section 2 DTD. Defining XML Dialects “Well-formedness” is the minimal requirement for an XML document; all XML parsers can check it Any useful.
XML Databases Presented By: Pardeep MT15042 Anurag Goel MT15006.
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.
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.
DEPTT. OF COMP. SC & APPLICATIONS
Web Technologies IT230 Dr Mohamed Habib.
XML and Databases.
CHAPTER 9 JAVA AND XML.
Client Access, Queries, Stored Procedures, JDBC
Web Programming Maymester 2004
XML Data DTDs, IDs & IDREFs.
Java Database Connectivity
Introduction of Week 11 Return assignment 9-1 Collect assignment 10-1
Java API for Database Connectivity
XML and Web Services (II/2546)
Presentation transcript:

ANTS - Technologies1 For possible use in the MIC-ANTS project. Jonathan Sprinkle Institute for Software Integrated Systems Vanderbilt University 4 October, 1999 Technologies

ANTS - Technologies2 Overview of Technologies l Basic Java l XML l SQL

ANTS - Technologies3 Basic Java Technologies Employed In the Demonstration Program l Dual Applet/Application Implementation l Swing l Only Sun packages used

ANTS - Technologies4 XML l Extensible Markup Language l Two major portions to an XML document –Document Type Declaration (DTD) –Document Data l Technically, three types of XML Documents: –Valid - data conforms to the DTD –Well-formed - 1+ elements, precisely 1 element that has no parent, and all other tags nest within each other correctly –Invalid - data does not conform to the DTD (parsers will toss their cookies if they read in a document like this one)

ANTS - Technologies5 The DTD l Has both boring and exciting portions –Boring: Ask not for whom the booth tolls… l Is this really boring? (Of course not) l Is this really useful? (Of course it is)

ANTS - Technologies6 The DTD –Exciting <!DOCTYPE SQLRESULTS [ ]>... l Is this really exciting? (you bet)

ANTS - Technologies7 Types of Data l PC-DATA -- Parsed Character Data l Other Tags –Can contain other tags (children of its tree) –Each of these other tags is defined directly after its parent tag, and may contain tags as its definition –All tags (from what I can tell) eventually become “#PC-DATA” –However, the PC-DATA need not be 7-bit ascii, it can be 8-bit, which allows for direct binary transfer

ANTS - Technologies8 Generic XML DTD <!DOCTYPE DOCUMENT_EXAMPLE [ ]>

ANTS - Technologies9 SQL and Java l Basic SQL Connectivity supplied through Java API l JDBC - Java Data-Base Connectivity –Uses a driver (which must be supplied by a vendor: in this case, Sun) which supplies a connection to the ODBC data-source for this database –JDBC seems to be a port for mapping Java code –“Should” work with any ODBC-compliant database –An interesting little bug I found l Must turn ON auto-commit to enable SQL-level transaction support. I found this using SQL-Server 7.0, but I suspect it is a problem with the bridge, because ODBC is way too professional to have this bug. The transactions nest correctly, but there is no way to rollback with auto-commit off. –Stored Procedures work, but not easy to make a general case method

ANTS - Technologies10 SQL and XML in Java l Custom classes for SQL connectivity and CURSOR retrieval l Custom classes for XML to create a DTD from the SQL information (ex. Column names, widths) on the fly l Native Java calls to determine row count, etc. l Custom classes to create the data of the XML document on the fly NOTE: the DTD and XML classes are independent of SQL, and can take any well-formed tree as the data input, as long as the DTD matches it.