2.1.XML and the Web - Web Application Engineering: XML and...

Info iconThis preview shows pages 1–6. Sign up to view the full content.

View Full Document Right Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: Web Application Engineering: XML and the Web Service Oriented Computing Group, CSE, UNSW Week 2 Acknowledgement: Some examples in these notes are originated from Dr. David Edmond from QUT, Brisbane. Notes contributed by Dr. Helen Paik, CSE, UNSW (CSE, UNSW) COMP9321, 11s1 Week 2 1 / 54 eXtensible Markup Language (XML) in HTML ... <html> <h1>Bibliography</h1> <ol> <li><i>Foundation of Databases</i>, <b>Abiteboul, Hull</b>, 1995</li> <li><i>Database Systems</i> <b>Elmasri, Navathe</b>, 1994</li> </ol> </html> in XML ... <bibliography> <book> <title>Foundation of Databases</title <author>Abiteboul</author> <author>Hull</author> <year>1995</year> </book> <book> <!-- continues --> </book> </bibliography> A simple, very flexible and extensible text data format extensible because the markup format is not fixed like HTML It lets you design your own customised markup XML is a language that describes data It separates presentation issues from the actual data (CSE, UNSW) COMP9321, 11s1 Week 2 2 / 54 XML: Tags, tags, tags Consider the following snippet of information from a staff list: LName Title FName School Campus Room Edgar Miss Pam Optometry KG B501 Edmond Dr David Information Systems GP S842 Edmonds Dr Ian Physical Sciences GP M206 In XML ... <Phonebook> <Entry> <LastName>Edgar</LastName> <Title>Miss</Title> <FistName>Pam</FirstName> <School>Optometry</School> <Campus>KG</Campus> <Room>B501</Room> </Entry> <Entry> <LastName>Edmond</LastName> <Title>Dr</Title> <FistName>David</FirstName> <School>Information Systems</School> <Campus>GP</Campus> <Room>S842</Room> </Entry> <!-- Entry continues ... --> </Phonebook> (CSE, UNSW) COMP9321, 11s1 Week 2 3 / 54 Why XML? Background Early Web Used to publish documents to be read by humans HTML was designed for the purpose Todays Web Many business activities are performed on the Web Dynamic interactions: Web app people / Web app Web app Web becomes a platform for data exchange XML provides a simple, cross-platform data format Web contains vast amount of data published in HTML format Many programs process or analyse such data HTML changes ... (when data inside does not) the program that reads the HTML page must change too XML provides a long-term, reliable data format for publishing (CSE, UNSW) COMP9321, 11s1 Week 2 4 / 54 Why XML? Benefits of using XML in document (data) exchange Self-describing, modular and portable data A common, widely accepted data representation language Standard supports available for creating/parsing XML docs Standard supports for checking validity of data Efficient search of business information standard support for querying XML docs quick and simple search (XPath) more comprehensive keyword + structure based search possible as well (XQuery) Extensible document descriptions XML is flexible (cf. relational tables)!...
View Full Document

This note was uploaded on 06/20/2011 for the course COMP 9417 taught by Professor Some during the Three '11 term at University of New South Wales.

Page1 / 54

2.1.XML and the Web - Web Application Engineering: XML and...

This preview shows document pages 1 - 6. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online