xmlBasics - XML Last Updated 3/12/2015 2:14 AM XML 1 What...

This preview shows page 1 - 8 out of 72 pages.

XMLXMLLast Updated 3/12/2015 2:14 AM1
XMLWhat 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 list2
XMLA 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 meaning3
XMLA 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 presentation4
XMLStyle Sheets provide formatting• song.cssSONG {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} 5
XMLAttaching 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> 6
XMLSGML, XML and HTMLThe parent of HTML and XML is Standard Generalized Markup Language (SGML) an ISO standard for electronic document exchangeboth XML and HTML are document formats derived from SGML. – Thus they all share certain characteristics, such as a similar syntax and the use of bracketed tags. – But HTML is an application of SGML, whereas XML is a subset of SGML. XML documents can be– read by any SGML authoring or viewing tool. – XML is less complex than SGML, and it is designed to work across a limited-bandwidth network such as the Internet.

Upload your study docs or become a

Course Hero member to access this document

Upload your study docs or become a

Course Hero member to access this document

End of preview. Want to read all 72 pages?

Upload your study docs or become a

Course Hero member to access this document

Term
Fall
Professor
Staff
Tags
Computer Science, Sort, XML Schema, xsl, Jacques Morali

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture