XML Configuration in Java David Roossien CS62112/2009.

Slides:



Advertisements
Similar presentations
THE SCO GROUP Welcome to Using MySQL. 2 ZENEZ ZENEZ Website MySQL on ZENEZ
Advertisements

Pierre-Johan CHARTRE Java EE - JAX-RS - Pierre-Johan CHARTRE
Chungnam National University DataBase System Lab
XPathAPI XPathAPI HOME : API : j/apidocs/ Lib.
Java + OpenGL = JOGL Java and OpenGL Rich Truban Andrew Potozniak.
J0 1 Marco Ronchetti - Web architectures – Laurea Specialistica in Informatica – Università di Trento Java XML parsing.
J0 1 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento.
J0 1 Marco Ronchetti - Basi di Dati Web e Distribuite – Laurea Specialistica in Informatica – Università di Trento.
Introduction to Java 2 Programming Lecture 10 API Review; Where Next.
The Java Platform and XML Portable Code, Portable Data James Duncan Davidson Staff Engineer, Sun Microsystems, Inc.
How to Build a Database- driven MIRC Teaching File System – A Case Study Stephen Moore Mallinckrodt Institute of Radiology.
® IBM Software Group © 2006 IBM Corporation Woden Demo WSD WG F2F, Arthur Ryman
An introduction to Java Servlet
XML IV. The Document Object Model The Document Object model is a hierarchical structure of an XML document. It provides a means for accessing, and manipulating.
Advanced XSLT II. Iteration in XSLT we sometimes wish to apply the same transform to a set of nodes we iterate through a node set the node set is defined.
Connecting to a Database through Programs Database Systems.
Overview Environment for Internet database connectivity
CIS* Service-Oriented Computing
1 WSDL: Web Service Description Language Gary Sharp Mike Breakiron.
Review Generics and the ArrayList Class
Regular Expressions BKF03 Brian Ciccolo. Agenda Definition Uses – within Aspen and beyond Matching Replacing.
XML Schema Heewon Lee. Contents 1. Introduction 2. Concepts 3. Example 4. Conclusion.
05/07/2008kbele/cs5251 Study of Tools & Utilities in Mobile Application By Kunal Bele.
1 Pertemuan 1 Introduction to Web and Internet Matakuliah: T0053/Web Programming Tahun: 2006 Versi: 2.
/ department of mathematics and computer sciencedepartment of mathematics and computer science / architecture of information systems.
1/7 ITApplications XML Module Session 8: Introduction to Programming with XML.
Lecture 11 Server Side Interaction
Native XML Database or RDBMS. Data or Document orientation If you are primarily storing documents, then a Native XML Database may be the best option.
A Prototype Implementation of a Framework for Organising Virtual Exhibitions over the Web Ali Elbekai, Nick Rossiter School of Computing, Engineering and.
XML, Uploading, Importing... Joshua Scotton.
Introducing XML : Table of Contents 1. From HTML to XML 2. Well-Formed XML 3. Validity / DTDs 4. Encodings 5. XML Namespaces 6. XML Schema 7. XML Tools.
Voice Server. Aspiration Provide a unique service to the members of CCSU. Provide a unique service to the members of CCSU. Provide a Streaming Voice Server.
Kit Chan ATS Lua Plugin Kit Chan Hi, My name is kit.
Using Evernote and Google Docs in your web or mobile application (and potentially Dropbox and Skydrive) By Peter Messenger Senior Developer – Triple Point.
Creating a RESTful Web Service for Microsoft SQL Server Patrick Mundy, Managing Partner Albert Factora, Managing Partner.
Schema validation with java xml xsd Agenda Umgebung Programm Output.
GROUP 3 Larry Gillis Eric Lam Cindy Lee Calvin Nguyen Evgeni Zlatanov.
Web Services (Nuts and Bolts) ITEC 625 Web Development Fall 2006 Reference: Building Web Services with Java (Making sense of XML, SOAP, WSDL, and UDDI),
XML & Data Structures for the Internet Yingcai Xiao.
Information Management NTU Web Services. Information Management NTU What Are Web Services? Semantically encapsulate discrete functionality Loosely coupled,
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.
Course Module 2: Service-Oriented Programming (SOP)
Web Services with Apache CXF
Model-View Controller
Presentation 11: SOAP on small devices. Ingeniørhøjskolen i Århus Slide 2 af 14 Outline Which small devices? What are the limitations and what kind of.
JAVA API (GUI) Subject:T0934 / Multimedia Programming Foundation Session:1 Tahun:2009 Versi:1/0.
Introduction to Web and Internet Pertemuan 1 Matakuliah: T0053/Web Programming Tahun: 2009.
XML Parsing Using Java APIs AIP Independence project Fall 2010.
Xerces The Apache XML Project Yvonne Yao. Introduction Set of libraries that provides functionalities to parse XML documents Set of libraries that provides.
XML DOM and SAX Parsers By Omar RABI. Introduction to parsers  The word parser comes from compilers  In a compiler, a parser is the module that reads.
Implementation of One Stop Search by XSLT By Dave Low University of Hong Kong 9-Dec-2003.
MC365 XML Parsers. Today We Will Cover: An overview of the Java API’s used for XML processing Creating an XML document in Java Parsing an XML document.
COMS W3156: Software Engineering, Fall 2001 Lecture #10: Planning and Estimation Janak J Parekh
XML: Java Dr Andy Evans. Java and XML Couple of things we might want to do: Parse/write data as XML. Load and save objects as XML. We’ll mainly discuss.
17 Apr 2002 XML Programming: JAXP Andy Clark. Java API for XML Processing Standard Java API for loading, creating, accessing, and transforming XML documents.
Structured-Document Processing Languages Spring 2011 Course Review Repetitio mater studiorum est!
Extracting tabular data from the Web. Limitations of the current BP screen scraper. Parsing is done line by line. Parsing is done line by line. Pattern.
Internet Technologies Review Week 1 How does Jigsaw differ from EchoServer.java? What abstractions are made available to the servlet writer (under.
3 Kinds of Libraries And some reflections on libraries in general As you arrive…please sit with your Tivoo groups.
SAX2 and DOM2 Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
Dom and XSLT Dom – document object model DOM – collection of nodes in a tree.
XML and Object Serialization. Structure of an XML Document Header Root Element Start Tags / End Tags Element Contents – Child Elements – Text – Both (mixed.
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.
1 Introduction to Web Application Review. 2 Five Layers Architecture HTML, CSS, Java Script ASP.net User ’ s.dll, Nunit, Web Services ADO.net SQL Server,
1 Validation SAX-DOM. Objectives 2  Schema Validation Framework  XML Validation After Transformation  Workshops.
USING ANDROID WITH THE DOM. Slide 2 Lecture Summary DOM concepts SAX vs DOM parsers Parsing HTTP results The Android DOM implementation.
Java API for XML Processing
Lecture Transforming Data: Using Apache Xalan to apply XSLT transformations Marc Dumontier Blueprint Initiative Samuel Lunenfeld Research Institute.
XML Programming in Java
Presentation transcript:

XML Configuration in Java David Roossien CS62112/2009

Presentation Outline 1. 3 different ways to process XML configuration: DOM DOM JDOM JDOM SQLXML SQLXML 2. Code Review - Interesting implementation details Singleton pattern Singleton pattern Drivers (library / jar files) Drivers (library / jar files) XML SQL data type XML SQL data type Transform Transform Streams Streams Java Color class Java Color class

Configuration Using XML for configuration is common, convenient and useful Using XML for configuration is common, convenient and useful

DOM Document Document Object Model Document Object Model lugin/dom/index.html lugin/dom/index.html lugin/dom/index.html lugin/dom/index.html org.w3c.dom.Document org.w3c.dom.Document Level-3-Core / Level-3-Core /

SAX Parser sources.dev.java.net/nonav/docs/api/javax /xml/parsers/SAXParser.html sources.dev.java.net/nonav/docs/api/javax /xml/parsers/SAXParser.html sources.dev.java.net/nonav/docs/api/javax /xml/parsers/SAXParser.html sources.dev.java.net/nonav/docs/api/javax /xml/parsers/SAXParser.html SAX Parser can parse SAX Parser can parse InputStreams InputStreams Files Files URLs URLs SAX InputSources SAX InputSources

JDOM Makes it easier to parse than DOM (Java) Makes it easier to parse than DOM (Java) Jarfile: Jarfile: To use it, include the jdom.jar on the libraries tab as an external jar in your eclipse project To use it, include the jdom.jar on the libraries tab as an external jar in your eclipse project

SQLXML SQLXML is a Java interface class SQLXML is a Java interface class sql/SQLXML.html sql/SQLXML.html sql/SQLXML.html sql/SQLXML.html sql/class-use/SQLXML.html sql/class-use/SQLXML.html sql/class-use/SQLXML.html sql/class-use/SQLXML.html

XML in SQL Server us/library/dd aspx us/library/dd aspx us/library/dd aspx us/library/dd aspx XML data type XML data type pes.asp pes.asp pes.asp pes.asp no support in MS Access no support in MS Access SQL 2005 (2 GB limit) SQL 2005 (2 GB limit)

Conclusions DOM DOM NodeList – iterate to find your element NodeList – iterate to find your element JDOM - makes configuration easier JDOM - makes configuration easier SQLXML – makes it possible to get XML data from a database SQLXML – makes it possible to get XML data from a database