xmlBasics

xmlBasics - XML Copyright Ellis Horowitz 1998-2010 XML 1...

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

View Full Document Right Arrow Icon
XML Copyright © Ellis Horowitz 1998-2010 1 XML
Background image of page 1

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

View Full DocumentRight Arrow Icon
XML Copyright © Ellis Horowitz 1998-2010 2 What is XML •XML stands for Extensible Markup Language – the World Wide Web Consortium (W3C) directs the effort •XML isn't a markup language, like HTML, but rather a system for defining other markup languages. •XML is a common syntax for expressing structure in data, and as a result a way for others to define new tags – whereas the <H1> tag in HTML specifies text to be presented in a certain typeface and weight, an XML tag would explicitly identify the kind of information it surrounds: <AUTHOR> tag might identify the author of a document, <PRICE> tag could contain an item's cost in an inventory list
Background image of page 2
XML Copyright © Ellis Horowitz 1998-2010 3 A Song Description in HTML <dt>Hot Cop <dd> by Jacques Morali, Henri Belolo, and Victor Willis <ul> <li>Producer: Jacques Morali <li>Publisher: PolyGram Records <li>Length: 6:20 <li>Written: 1978 <li>Artist: Village People </ul> the above has presentation, but no meaning
Background image of page 3

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

View Full DocumentRight Arrow Icon
XML Copyright © Ellis Horowitz 1998-2010 4 A Song Description in XML <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> <SONG LENGTH="6:20"> <TITLE>Hot Cop</TITLE> <COMPOSER>Jacques Morali</COMPOSER> <COMPOSER>Henri Belolo</COMPOSER> <COMPOSER>Victor Willis </COMPOSER> <PRODUCER>Jacques Morali </PRODUCER> <PUBLISHER>PolyGram Records </PUBLISHER> <YEAR>1978</YEAR> <ARTIST>Village People</ARTIST> </SONG> has meaning, but no presentation
Background image of page 4
XML Copyright © Ellis Horowitz 1998-2010 5 Style Sheets provide formatting • song.css SONG {display: block} TITLE {display: block; font-family: Helvetica, serif; font-size: 20pt; font-weight: bold} COMPOSER {display: block; font-family: Times, Times New Roman, serif; font-size: 14pt; font- style: italic} ARTIST {display: block; font-family: Times, Times New Roman, serif; font-size: 14pt; font-weight: bold; font-style: italic} PUBLISHER {display: block; font-family: Times, Times New Roman, serif; font-size: 14pt} YEAR {display: block; font-family: Times, Times New Roman, serif; font-size: 14pt}
Background image of page 5

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

View Full DocumentRight Arrow Icon
XML Copyright © Ellis Horowitz 1998-2010 6 Attaching style sheets to documents <?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?> <?xml-stylesheet type="text/css" href="song.css"?> <SONG LENGTH="6:20"> <TITLE>Hot Cop</TITLE> <COMPOSER>Jacques Morali</COMPOSER> <COMPOSER>Henri Belolo</COMPOSER> <COMPOSER>Victor Willis</COMPOSER> <PRODUCER>Jacques Morali</PRODUCER> <PUBLISHER>PolyGram Records</PUBLISHER> <YEAR>1978</YEAR> <ARTIST>Village People</ARTIST> </SONG>
Background image of page 6
XML Copyright © Ellis Horowitz 1998-2010 7 SGML, XML and HTML • The parent of HTML and XML is Standard Generalized Markup Language (SGML) an ISO standard for electronic document exchange • SGML competes with other standards, mainly de facto standards, like Adobe PDF (Acrobat), Microsoft RTF (Rich Text Format) and popular word processor file formats like Microsoft Word. • both XML and HTML are document formats derived from
Background image of page 7

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

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

This note was uploaded on 02/24/2011 for the course CSCI 571 at USC.

Page1 / 75

xmlBasics - XML Copyright Ellis Horowitz 1998-2010 XML 1...

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

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