Software Design 13.1 XML: Another TLA or the Future? XML is eXtensible Markup Language  It's a w3c standard.

Slides:



Advertisements
Similar presentations
1/7 ITApplications XML Module Session 8: Introduction to Programming with XML.
Advertisements

XML: Extensible Markup Language
Slide 10.1 Advanced Programming 2004, based on LY Stefanus’s Slides Object Serialization Object serialization: the process of converting an object into.
Introduction XML Technologies Mark Graves. This presentation is Copyright 2001, 2002 by Mark Graves and contains material Copyright 2002 by Prentice Hall.
XML Parsing Using Java APIs AIP Independence project Fall 2010.
ICS 123 XML: It’s a Good Thing Richard N. Taylor & Eric M. Dashofy ICS 123 S2002.
Grid Computing, B. Wilkinson, 20043a.1 WEB SERVICES Introduction.
Java API for XML Processing (JAXP) CSE 4/586: Distributed Systems Department of Computer Science and Engineering University at Buffalo, New York Jia Zhao.
Advanced Java Class Serialization. Serialization – what and why? What? –Translating the contents of an Object to a series of bytes that represent it,
CS 898N – Advanced World Wide Web Technologies Lecture 22: Applying XML Chin-Chih Chang
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
AMS confidential & proprietary International Business and Technology Consultants 1 XML as a Document Exchange Format Tom Loukas AMS Center for Advanced.
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.
1 XML at a neighborhood university near you Innovation 2005 September 16, 2005 Kwok-Bun Yue University of Houston-Clear Lake.
XML: Overview MIS 181.9: Service Oriented Architecture 2 nd Semester,
School of Computing and Management Sciences © Sheffield Hallam University To understand the Oracle XML notes you need to have an understanding of all these.
XML eXtensible Markup Language w3c standard Why? Store and transport data Easy data exchange Create more languages WSDL (Web Service Description Language)
Java API for XML Processing (JAXP) توسط : محمّدمهدي حامد استاد راهنما : دكتر مسعود رهگذر.
An Introduction to XML Presented by Scott Nemec at the UniForum Chicago meeting on 7/25/2006.
XML 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
SAX Parsing Presented by Clifford Lemoine CSC 436 Compiler Design.
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 Parsers Overview  Types of parsers  Using XML parsers  SAX  DOM  DOM versus SAX  Products  Conclusion.
Electronic Commerce COMP3210 Session 4: Designing, Building and Evaluating e-Commerce Initiatives – Part II Dr. Paul Walcott Department of Computer Science,
10/15/20151 XML. 10/15/20152 Mark-up Languages Digitalizing information Content Format SGML HTML XML RDF OWL …
XP Tutorial 9 1 Working with XHTML. XP SGML 2 Standard Generalized Markup Language (SGML) A standard for specifying markup languages. Large, complex standard.
XML – An Introduction Structured Data Mark-up James McCartney CSCE 590, Cluster and Grid Computing.
WEB BASED DATA TRANSFORMATION USING XML, JAVA Group members: Darius Balarashti & Matt Smith.
McGraw-Hill/Irwin © 2004 by The McGraw-Hill Companies, Inc. All rights reserved. Scripting with the DOM Ellen Pearlman Eileen Mullin Programming the Web.
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.
Web Technologies COMP6115 Session 4: Adding a Database to a Web Site Dr. Paul Walcott Department of Computer Science, Mathematics and Physics University.
XML – A Quick Introduction Kerry Raymond (stolen from others)
Lecture: Web Design Assis. Prof. Freshta Hanif Ehsan Faculty of Computer Science Kabul Polytechnic University Spring Semester
XML Basics A brief introduction to XML in general 1XML Basics.
C# and Windows Programming XML Processing. 2 Contents Markup XML DTDs XML Parsers DOM.
XML and Its Applications Ben Y. Zhao, CS294-7 Spring 1999.
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.
Structured Documents - XML and FrameMaker 7 Asit Pant.
What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized.
Representing data with XML SE-2030 Dr. Mark L. Hornick 1.
1 Introduction JAXP. Objectives  XML Parser  Parsing and Parsers  JAXP interfaces  Workshops 2.
©SoftMoore ConsultingSlide 1 Serialization. ©SoftMoore ConsultingSlide 2 Serialization Allows objects to be written to a stream Can be used for persistence.
Martin Kruliš by Martin Kruliš (v1.1)1.
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.
1 CSE 331 Memento Pattern and Serialization slides created by Marty Stepp based on materials by M. Ernst, S. Reges, D. Notkin, R. Mercer, Wikipedia
Web Design Principles 5 th Edition Chapter 3 Writing HTML for the Modern Web.
XML & JSON. Background XML and JSON are to standard, textual data formats for representing arbitrary data – XML stands for “eXtensible Markup Language”
Week-9 (Lecture-1) XML DTD (Data Type Document): An XML document with correct syntax is called "Well Formed". An XML document validated against a DTD is.
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.
X M L Extensible Markup Language It is a cross platform tool or a language to achieve data transfer between the cross platform. Note  1.XML is not a replacement.
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
X M L Extensible Markup Language
A Web Services Journey on the .NET Bus
Java XML IS
Intro to XML.
Server-Side Application and Data Management IT IS 3105 (FALL 2009)
Component-based Software Engineering: XML
XML in Web Technologies
Data Modeling II XML Schema & JAXB Marc Dumontier May 4, 2004
XML Parsers Overview Types of parsers Using XML parsers SAX DOM
XML Data DTDs, IDs & IDREFs.
More Sample XML By Sadia Anjum.
XML Problems and Solutions
CSE 331 Memento Pattern slides created by Marty Stepp based on materials by M. Ernst, S. Reges, D. Notkin, R. Mercer, Wikipedia
CS 240 – Advanced Programming Concepts
XML Parsers.
Presentation transcript:

Software Design 13.1 XML: Another TLA or the Future? XML is eXtensible Markup Language  It's a w3c standard (what does this mean?)  It's simple, flexible, portable, extensible, hierarchical, complicated (see simple)  Basis for XMP-RPC, SOAP, UDDI, WSDL Why do we need to understand XML?  It really is simple, and it really is powerful  It really is in-demand and one of the FOTDay

Software Design 13.2 XML in brief Need some method to create XML  Exported by applications, e.g., iTunes  Edited by hand, this is a bad idea  Done programatically, see bullet 1 XML can be validated with a DTD  Document Type Definition  Often provided by applications  Really necessary for complex XML data

Software Design 13.3 What does it look like? <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN " Major Version 1 Minor Version 1 Application Version Features 1 MusicFolder file://localhost/Users/ola/Music/iTunes/iTunes%20Music/ Library Persistent ID 2D2047AF6D8A9673 Tracks 40 Track ID 40 Name Track 01 Kind AAC audio file

Software Design 13.4 Elements of XML There's an XML header, specifies global "stuff" There's the content  Root element  Sub elements What is an element?  Tagged, case-sensitive, semantic  Can contain text, data, attributes Glob.java Blib.java

Software Design 13.5 Handling XML There are two ways to parse/read XML SAX: Simple API for XML  Stream based, register callbacks that are called when certain tags/data parsed  Can't move around, but can read and discard DOM: Document Object Model  Entire tree-like structure read into memory  Easy to move around

Software Design 13.6 Saving and restoring objects Classes should implement Serializable, this is a tag interface, not necessary to implement a function (see Cloneable)  mark non-serializable fields as transient platform specific objects like font sizes, these need to be reconstructed rather than re-read fields that aren’t needed when an object is deserialized  use ObjectOutputStream and ObjectInputStream, can customize behavior using private?! functions below private void writeObject(java.io.ObjectOutputStream out) throws IOException private void readObject(java.io.ObjectInputStream in) throws IOException, ClassNotFoundException;  also defaultReadObject() and defaultWriteObject()