lecture7

lecture7 - PIC 40A Lecture 7 XML Syntax Document Structure...

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

View Full Document Right Arrow Icon
PIC 40A Lecture 7: XML Syntax, Document Structure
Background image of page 1

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

View Full DocumentRight Arrow Icon
eXtensible Markup Language • XML is not a markup language itself • XML is a meta-markup language (set of rules and a framework for creating markup languages)
Background image of page 2
An important distinction An XML application or tag set is a markup language defined using the syntax of XML. eg XHTML, RSS An XML document is a text file that marks up data using a particular XML tag set eg a Web page written in XHTML an RSS feed
Background image of page 3

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

View Full DocumentRight Arrow Icon
Why use XML? • SGML too complex and redundant • HTML tags too generic, not descriptive enough for element content • The XML framework allows you to create your own custom-made tags and attributes • An XML document is an easy and universal way to store text data • XML syntax is strict, simple, and clean
Background image of page 4
How does XML describe data? via – elements – attributes – entities
Background image of page 5

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

View Full DocumentRight Arrow Icon
Made up of three parts 1. Opening tag (with possible attributes) 2. Content (text, nested elements, or mixed ) 3. Closing tag Elements can be empty (have no content) <element att1=“val1”/>
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/15/2010 for the course PIC 40A taught by Professor Ouellette during the Winter '10 term at UCLA.

Page1 / 17

lecture7 - PIC 40A Lecture 7 XML Syntax Document Structure...

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

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