XML Problems and Solutions

Slides:



Advertisements
Similar presentations
XML-XSL Introduction SHIJU RAJAN SHIJU RAJAN Outline Brief Overview Brief Overview What is XML? What is XML? Well Formed XML Well Formed XML Tag Name.
Advertisements

XML: text format Dr Andy Evans. Text-based data formats As data space has become cheaper, people have moved away from binary data formats. Text easier.
University of Jyväskylä/AHo & VLy Experiences of Document Transformations with XSLT and DOM Anne Honkaranta, Virpi Lyytikäinen, Pasi Tiitinen, University.
XSL XSLT and XPath 11-Apr-17.
XML: Managing Data Exchange Stylesheets. Lesson Contents CSS The basic XSL file XSL transforms Templates Sort Numbering Parameters and Variables Datatypes.
1 CP3024 Lecture 9 XML revisited, XSL, XSLT, XPath, XSL Formatting Objects.
XML Parsing Using Java APIs AIP Independence project Fall 2010.
XML Extensible Markup Language Standard supported by W3C (World Wide Web Consortium) HTML – End user oriented (presentation) XML – Application oriented.
SaxStore: a n aspect oriented persistence library for Java based on SAX events Riccardo Solmi University of Bologna May 2001.
9/19/06 Hofstra University – Overview of Computer Science, CSC005 1 Chapter 16 – Part 2 The World Wide Web The New Yorker, Peter Steiner, July 5, 1993.
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.
Technical Track Session XML Techie Tools Tim Bornholt.
Chapter 13 XML Concept of XML Simple Example of XML XML vs. HTML in Syntax XML Structure DTD and CDATA Sections Concept of SAX Processing Download and.
XML Fundementals XML vs.. HTML XML vs.. HTML XML Document (elements vs. attributes) XML Document (elements vs. attributes) XML and RDBMS XML and RDBMS.
Pemrograman Berbasis WEB XML part 2 -Aurelio Rahmadian- Sumber: w3cschools.com.
XML Anisha K J Jerrin Thomas. Outline  Introduction  Structure of an XML Page  Well-formed & Valid XML Documents  DTD – Elements, Attributes, Entities.
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.
SDPL 2002Notes 7: Apache Cocoon1 7 XML Web Site Architecture Example: Apache Cocoon, a Web publishing architecture based on XML technology
XML and its applications: 4. Processing XML using PHP.
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)
Another PillowTalk Presentation  2004 Dynamic Systems, Inc. Introduction to XML for SOA Lee H. Burstein,
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 1 Enterprise Applications CE00465-M XML. 2 Enterprise Applications CE00465-M XML Overview Extensible Mark-up Language (XML) is a meta-language that.
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 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.
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.
CIS 375—Web App Dev II XSL. 2 XSL Introduction XSL stands for _____________________________. XSL is the language used for manipulating and displaying.
Softsmith Infotech XML. Softsmith Infotech XML EXtensible Markup Language XML is a markup language much like HTML Designed to carry data, not to display.
March 28, 2001XSP Session O’Reilly Enterprise Java Conference 1 XSP Session Sue Spielman President/Consulting Engineer President/Consulting Engineer
WEB BASED DATA TRANSFORMATION USING XML, JAVA Group members: Darius Balarashti & Matt Smith.
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.
17 Apr 2002 XML Syntax: Documents Andy Clark. Basic Document Structure Element tags – Elements have associated attributes Text content Miscellaneous –
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.
1 Overview of XSL. 2 Outline We will use Roger Costello’s tutorial The purpose of this presentation is  To give a quick overview of XSL  To describe.
ISO/TC 211 WG4 WI 18 Encoding Foil no. 1 Annex C XML and XMI David Skogan SINTEF Telecom and Informatics
XML Introduction. Markup Language A markup language must specify What markup is allowed What markup is required How markup is to be distinguished from.
Jennifer Widom XML Data Introduction, Well-formed XML.
AxKit A member of the Apache XML project Ryan Maslyn Kyle Bechtel.
XML stands for Extensible Mark-up Language XML is a mark-up language much like HTML XML was designed to carry data, not to display data XML tags are not.
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.
COMP9321 Web Application Engineering Semester 2, 2015 Dr. Amin Beheshti Service Oriented Computing Group, CSE, UNSW Australia Week 4 1COMP9321, 15s2, Week.
Web Technologies Lecture 4 XML and XHTML. XML Extensible Markup Language Set of rules for encoding a document in a format readable – By humans, and –
Dom and XSLT Dom – document object model DOM – collection of nodes in a tree.
What is XML? eXtensible Markup Language eXtensible Markup Language A subset of SGML (Standard Generalized Markup Language) A subset of SGML (Standard Generalized.
SCHOOL OF LIBRARY, ARCHIVE AND INFORMATION STUDIES Andy Dawson LIS1510 Library and Archives Automation Issues XML and extensible systems Andy Dawson School.
1 Introduction JAXP. Objectives  XML Parser  Parsing and Parsers  JAXP interfaces  Workshops 2.
Jackson, Web Technologies: A Computer Science Perspective, © 2007 Prentice-Hall, Inc. All rights reserved Chapter 7 Representing Web Data:
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.
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.
Chapter 13 XML Concept of XML Simple Example of XML
Unit 4 Representing Web Data: XML
XML QUESTIONS AND ANSWERS
Database Processing with XML
Prepared for Md. Zakir Hossain Lecturer, CSE, DUET Prepared by Miton Chandra Datta
Introduction to Internet Programming
Chapter 7 Representing Web Data: XML
Roy Tennant California Digital Library
XML Data Introduction, Well-formed XML.
CSE591: Data Mining by H. Liu
XML and its applications: 4. Processing XML using PHP
XML Programming in Java
Review of XML IST 421 Spring 2004 Lecture 5.
Extensible Markup Language (XML)
Unit 6 - XML Transformations
Presentation transcript:

XML Problems and Solutions Andy Clark 17 Apr 2002

Attributes vs. Elements Problem: I can't decide between using attributes and elements. Solution: With DTDs, attributes offer limited "datatype" support but are less flexible. XML Schema (among other schema languages) have true datatype support and can be used for attribute and element content.

DOM Performance Problem: Solution: The DOM tree uses a lot of memory. Don't use DOM. Instead, use a SAX parser and build custom, efficient data structures as needed.

Java Serialization of DOM Problem: I want to use RMI to serialize my document to a remote object but it's not working. Solution: DOM tree implementations are not required to be serializable. And since the XML format is a more efficient representation than Java serialization, use a serializable object that writes XML and re-parse the document on the remote end.

Relational Databases Problem: Solution: I have heard XML is the next "big thing". Do I have to throw away my relational database? Solution: All of the major relational database vendors are incorporating XML support into their products. Your legacy data is safe and will play well with all of the new kids in town.

Binary Data in XML Problem: Solution: I want to embed binary data in my document but the parser complains about invalid characters. Solution: The XML specification does not allow all Unicode characters to appear in a document. The binary data must be encoded using legal XML characters (e.g. base64). The application is then responsible for decoding the information.

Invalid Encoding Problem: Solution: I am using ISO Latin 1 characters in my document but my parser doesn't like it. Solution: You must specify the proper encoding in the XML Declaration line of your XML file. The encoding name for ISO Latin 1 is "ISO-8859-1". By default, XML parsers assume "UTF-8". [Note that ASCII is equivalent to UTF-8 chars 0-127.] e.g. <?xml version=‘1.0’ encoding=‘ISO-8859-1’?>

Publish as HTML Problem: Solution: I want my customers to view an HTML version of my XML data. What can I do? Solution: Use XSL stylesheets to transform your XML documents into HTML. Using stylesheets separates the content from the presentation and makes it easy to change the "look & feel" of your website without changing your data.

Browser Support Problem: Solution: Can I use the DOM and XSL in browsers on the client side? Solution: Some of the latest browsers have support for latest DOM and XSL standards (e.g. IE 6.0+). Best suggestion is to statically generate the pages, if applicable, or dynamically generate the HTML on the server side (e.g. using servlets).

Useful Links World Wide Web Consortium (W3C) XML.com http://www.w3.org/ XML.com http://www.xml.com/

XML Problems and Solutions Andy Clark