Applications of XML Oz OceanAtlas Software and NOAA/PMEL.

Slides:



Advertisements
Similar presentations
CSCI N241: Fundamentals of Web Design Copyright ©2004 Department of Computer & Information Science Introducing XHTML: Module B: HTML to XHTML.
Advertisements

Defining XML The Document Type Definition. Document Type Definition text syntax for defining –elements of XML –attributes (and possibly default values)
History Leading to XHTML
1 XML DTD & XML Schema Monica Farrow G30
3 November 2008CIS 340 # 1 Topics To define XML as a technology To place XML in the context of system architectures.
Tutorial 9 Working with XHTML
CS 898N – Advanced World Wide Web Technologies Lecture 21: XML Chin-Chih Chang
CSE 190: Internet E-Commerce Lecture 17: XML, XSL.
CSCI 7818 (Topics in Software Engineering) Web Infrastructure, Services, and Applications Document Type Definition (DTD) Author: Lukasz Kurgan.
31 Signs That Technology Has Taken Over Your Life: #6. When you go into a computer store, you eavesdrop on a salesperson talking with customers -- and.
1 XML: Document Type Definitions 2 Road Map  Introduction to DTDs  What’s a DTD?  Why are they important?  What will we cover?  Our First DTD 
XML Namespaces Andrey Smirnov CSCI 7818 September 21, 2000.
XML Introduction What is XML –XML is the eXtensible Markup Language –Became a W3C Recommendation in 1998 –Tag-based syntax, like HTML –You get to make.
CS 898N – Advanced World Wide Web Technologies Lecture 22: Applying XML Chin-Chih Chang
XML(EXtensible Markup Language). XML XML stands for EXtensible Markup Language. XML is a markup language much like HTML. XML was designed to describe.
Document Type Definitions. XML and DTDs A DTD (Document Type Definition) describes the structure of one or more XML documents. Specifically, a DTD describes:
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.
Introduction to XML This material is based heavily on the tutorial by the same name at
Introducing HTML & XHTML:. Goals  Understand hyperlinking  Understand how tags are formed and used.  Understand HTML as a markup language  Understand.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
Why XML ? Problems with HTML HTML design - HTML is intended for presentation of information as Web pages. - HTML contains a fixed set of markup tags. This.
Chapter 4: Document Type Definitions. Chapter 4 Objectives Learn to create DTDs Validate an XML document against a DTD Use DTDs to create XML documents.
1 herbert van de sompel CS 502 Computing Methods for Digital Libraries Cornell University – Computer Science Herbert Van de Sompel
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
XML Syntax - Writing XML and Designing DTD's
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.
These Questions are copied from
Introduction to GAIGS XML Scripting Integrating Algorithm Visualization into Computer Science Education Grand Valley State University June 13-16, 2006.
1 Tutorial 13 Validating Documents with DTDs Working with Document Type Definitions.
CSC 551: Web Programming Fall 2001 emerging & alternate Web technologies  Dynamic HTML  ActiveX  XML course overview  online review sheet  advice.
XML A web enabled data description language 4/22/2001 By Mark Lawson & Edward Ryan L’Herault.
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.
CIS 451: XML DTDs Dr. Ralph D. Westfall February, 2009.
© GMV S.A., 2004 Property of GMV S.A. All rights reserved 2004/05/13 XML in CCSDS CCSDS Spring Meeting - Montreal Fran Martínez GMVSA 4081/04.
XML Documents Chao-Hsien Chu, Ph.D. School of Information Sciences and Technology The Pennsylvania State University Elements Attributes Comments PI Document.
An OO schema language for XML SOX W3C Note 30 July 1999.
XML Instructor: Charles Moen CSCI/CINF XML  Extensible Markup Language  A set of rules that allow you to create your own markup language  Designed.
Lecture 16 Introduction to XML Boriana Koleva Room: C54
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.
An Introduction to XML Sandeep Bhattaram
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.
The Official 2002 XML Marathon April 4, Revised Requirements A photocopy of the original text A short description (read: single paragraph) discussing.
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
Introduction to XML February 07, From HTML to XML As mentioned in previous classes, if you know HTML, then you already know XML… really! In this.
XML Study-Session: Part III
INFSY 547: WEB-Based Technologies Gayle J Yaverbaum, PhD Professor of Information Systems Penn State Harrisburg.
XML eXtensible Markup Language. XML A method of defining a format for exchanging documents and data. –Allows one to define a dialect of XML –A library.
Internet & World Wide Web How to Program, 5/e. © by Pearson Education, Inc. All Rights Reserved.2.
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.
XML CSC1310 Fall HTML (TIM BERNERS-LEE) HyperText Markup Language  HTML (HyperText Markup Language): December  Markup  Markup is a symbol.
XML The Extensible Markup Language (XML ), which is comparable to SGML and modeled on it, describes how to describe a collection of data. A standard way.
XML DTD. XML Validation XML with correct syntax is "Well Formed" XML. XML validated against a DTD is "Valid" XML.
Martin Kruliš by Martin Kruliš (v1.1)1.
Java OceanAtlas A Cross-Platform Application for Visualization and Selection of Oceanographic Profile Data John R. Osborne ftp://odf.ucsd.edu/pub/OceanAtlas/
Introduction to XML Kanda Runapongsa Dept. of Computer Engineering Khon Kaen University.
XML Introduction to XML Extensible Markup Language.
XML 1.Introduction to XML 2.Document Type Definition (DTD) 3.XML Parser 4.Example: CGI Gateway to XML Middleware.
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.
Using XML Tools CS551 – Fall 2001.
Java XML IS
XML in Web Technologies
The XML Language.
XML מבוא כללי פרק ב' MCSD Doron Amir
XML Problems and Solutions
CSE591: Data Mining by H. Liu
Document Type Definition (DTD)
Presentation transcript:

Applications of XML Oz OceanAtlas Software and NOAA/PMEL

How I Use XML Settings files for JOA resources including preferences, color palettes, color bars, interpolation surfaces, map settings. As a replacement EPIC pointer files for describing collections of metadata for profile and time-series data. EPIC pointer files are difficult to parse with a rigid format that is difficult to expand.

Advantages of XML Not an opaque binary object (e.g., a serialized Java object)-- viewable and editable using very simple tools Settings files not rendered obsolete when your program needs change. If you serialized a Java object that held the specifications, for example, a map, changing the map specification object would render all your existing settings files unreadable. Using XML you would simple add/remove tags. Your code simply ignores obsolete tags until overwritten by a new version. Easy to organize information into hierarchies and a kind of object inheritance.

Advantages of XML (continued) Easy to parse with readily available libraries--I use an ancient SAX parser. Probably easier to parse with more modern libraries.

Examples: Setting File yyyy-MMM-dd true 0

Examples: Setting File TEMP global 32 contours covering World Ocean ranges … …

Designing XML Files I have usually designed my XML files by building a DTD (Document Type Definition) file (unless it’s very simple). DTDs describe “rules for how the XML document elements, attributes, and other data are defined and logically related in an XML-compliant document.” Can also use the DTD to validate the correctness of an XML document. An XML document may also have an associated stylesheet that specifies how the document looks when displayed (e.g., in a web browser). I don’t build stylesheets because I’m not concerned with how they look.

Example of a DTD: EPIC XML Pointer File <!ATTLIST epicxml version CDATA #REQUIRED type (profile | time-series | grid | other) #REQUIRED URI CDATA #IMPLIED lexicon CDATA #IMPLIED> <!ATTLIST time location (start | end | point) #REQUIRED “point” units CDATA #IMPLIED > <!ATTLIST date location (start | end | point) #REQUIRED “point” year CDATA #REQUIRED month CDATA #REQUIRED day CDATA #REQUIRED hour CDATA #IMPLIED min CDATA #IMPLIED secs CDATA #IMPLIED> <!ATTLIST latitude location (north | south | start | end | point) #REQUIRED “point” units (degrees_north | degrees_south) #IMPLIED “degrees_north”> <!ATTLIST longitude location (east | west | start | end | point) #REQUIRED “point” units (degrees_east | degrees_west) #IMPLIED “degrees_east”> <!ATTLIST vertical location (top | bottom | start | end | point) #REQUIRED “point” units CDATA #REQUIRED positive CDATA "down"> <!ATTLIST variable name ID #REQUIRED units CDATA #REQUIRED description CDATA #IMPLIED lexicon CDATA #IMPLIED> <!ATTLIST fileset id CDATA #REQUIRED URI CDATA #IMPLIED> <!-- time should have location=”start”, “end” for time series, “point” for profile, vertical should have location=”top”, “bottom” for profile, “point” for time series, latitude and longitude should have location=”point” --> <!ATTLIST station id CDATA #REQUIRED cast CDATA #IMPLIED URI CDATA #IMPLIED bottom CDATA #IMPLIED reference CDATA #REQUIRED> <!ATTLIST grid id CDATA #REQUIRED URI CDATA #IMPLIED reference CDATA #REQUIRED> <!ATTLIST track id CDATA #REQUIRED URI CDATA #IMPLIED reference CDATA #REQUIRED> <!ATTLIST stationvalue cast CDATA #REQUIRED name CDATA #REQUIRED units CDATA #REQUIRED method CDATA #IMPLIED lexicon CDATA #IMPLIED value CDATA #REQUIRED> <!ATTLIST attribute name CDATA #REQUIRED value CDATA #REQUIRED>

Example EPIC XML Pointer File from DTD A dummy comment for testing XML Writing