Basic XMLVan Hoang NguyenMail: startnewday85@gmail.comDepartment of Computer Science
Computer file typescsdtshtmprcasfrmvbrpmpeg2mpgpptmpeg4rmxdatramodmpeg7zlitraxxsltavidivxm2tsrmjb4frampdocvlcm3ujpegxlsxmp2aviwavifortxicoinipptxswfflacrvxzipmkvjsgifaacsdppdfrarcssnuvdvpngmlpmkartfwmaapeitxhtmlmp3xmlm2vmkvmxfsmildipodpdvmovsmippsmmpeg3htmlppscppjavaflvimgseadocxisojpemp4tifgxfm1vconfigvbjpgm2tasxppsxbmpmpeg1omaxlsoggrmaifqta52tiffac3potpsm3u8
Computer file typesIs just a sequence(stream) of bits( 1s and 0s) Using special encoding
 Can only  be read and produced by special applications
 meta-data is embedded
 Process very fastly
 Any data
 Using standard encoding
 Can be read and produced by any application with standard encoding
 no meta-data
 Process slowly
 Can not apply for allMarkup solution010101011111010010101010111110111111111000001100010101010010100010101110100010101010101011111010111110100011111000111011Beginning XML4thDavidHunterJeffRafterJoeFawcettEricvanderVlistDannyAyersJon DuckettAndrewWattandLindaMcKinnonWiley2007978-0-470-11487-2?,,Beginning XML$,,4th$,,,David$,,Hunter$,$,………………………..$,<book><title>Beginning XML</title><edition>4th</edition><author><ristName>David</firstName><lastName>Hunter</lastName></author>………………………..</book>1. Fixed-length fields2. Separating fieldsBeginning XML……4th……………………David………………......................................978-0-470-11487-23. Grouping fieldsBeginning XML,4th,David,Hunter,Jeff,Rafter,Joe,Fawcett,Eric,vander,Vlist,Danny,Ayers, Jon,Duckett,Andrew, Wattand,Linda,McKinnon,Wiley,2007,978-0-470-11487-24. Naming fieldsNow, We reach markup solution
A brief history of markup 1960’s, in publishing and printing industryThe idea of separation between the contents and formating of a document 1967, William W. TunnicliffeA set of label allowing to describe a so-called editoral structure Stanley RiceGenCodeModern Markup languageCreate a markup language with nested structureGML 1969, Charles Goldfard, Mosher and Raymond Lorie
 1986, SGML becomes an international norm(ISO 8879/1986)World Wide Web(WWW) and HyperText Markup Language 1 (HTML 1) 1990, Berneers Lee at CERNExtensible Markup Language 1.0 (XML 1.0) 10 February 1998, XML is a W3C recommandationXML Design goalsXML shall be straightforwardly usable over the Internet.XML shall support a wide variety of applications.XML shall be compatible with SGML.It shall be easy to write programs which process XML documents.The number of optional features in XML is to be kept to the absolute minimum, ideally zero.XML documents should be human-legible and reasonably clear.The XML design should be prepared quickly.The design of XML shall be formal and concise.XML documents shall be easy to create.Terseness in XML markup is of minimal importance.
Foundations for XMLXML-based Markup LanguageseXtensible Markup Language XMLUnicodeUniform Resource Identifier(URI)
XML Document<?xml version=‘1.0’ encoding=“UTF-8”?><!-- Human Resource data--><HumanResource><!-- Information for a person--><Person id=‘1’ slary=“500”>	<FirstName>John</FirstName>	<MidName><MidName>	<LastName>Doe</LastName>	<Position>Manager</Position></Person></HumanResource>
XML Document<?xml version=‘1.0’ encoding=“UTF-8”?><!-- Human Resource data--><HumanResource><!-- Information for a person--><Person id=‘1’ slary=“500”><FirstName>John</FirstName><MidName><MidName><LastName>Doe</LastName><Position>Manager</Position></Person></HumanResource>Tags: start-tags and end-tagsTag: the text starting with a < character and ending with a > character.
XML Document<?xml version=‘1.0’ encoding=“UTF-8”?><!-- Human Resource data--><HumanResource><!-- Information for a person--><Person id=‘1’ slary=“500”><FirstName>John</FirstName><MidName><MidName><LastName>Doe</LastName><Position>Manager</Position></Person></HumanResource>Tags: start-tags and end-tagsElementAll the information from the beginning of a start-tag to the end of an end-tag and including everything in between.
XML Document<?xml version=‘1.0’ encoding=“UTF-8”?><!-- Human Resource data--><HumanResource><!-- Information for a person--><Person id=‘1’ slary=“500”><FirstName>John</FirstName><MidName><MidName><LastName>Doe</LastName><Position>Manager</Position></Person></HumanResource>Tags: start-tags and end-tagsElementElement contentIs the text between the start-tag and end-tag of the element.Parsed character data(PCDATA)

Basic XML

  • 1.
    Basic XMLVan HoangNguyenMail: startnewday85@gmail.comDepartment of Computer Science
  • 2.
  • 3.
    Computer file typesIsjust a sequence(stream) of bits( 1s and 0s) Using special encoding
  • 4.
    Can only be read and produced by special applications
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
    Can beread and produced by any application with standard encoding
  • 10.
  • 11.
  • 12.
    Can notapply for allMarkup solution010101011111010010101010111110111111111000001100010101010010100010101110100010101010101011111010111110100011111000111011Beginning XML4thDavidHunterJeffRafterJoeFawcettEricvanderVlistDannyAyersJon DuckettAndrewWattandLindaMcKinnonWiley2007978-0-470-11487-2?,,Beginning XML$,,4th$,,,David$,,Hunter$,$,………………………..$,<book><title>Beginning XML</title><edition>4th</edition><author><ristName>David</firstName><lastName>Hunter</lastName></author>………………………..</book>1. Fixed-length fields2. Separating fieldsBeginning XML……4th……………………David………………......................................978-0-470-11487-23. Grouping fieldsBeginning XML,4th,David,Hunter,Jeff,Rafter,Joe,Fawcett,Eric,vander,Vlist,Danny,Ayers, Jon,Duckett,Andrew, Wattand,Linda,McKinnon,Wiley,2007,978-0-470-11487-24. Naming fieldsNow, We reach markup solution
  • 13.
    A brief historyof markup 1960’s, in publishing and printing industryThe idea of separation between the contents and formating of a document 1967, William W. TunnicliffeA set of label allowing to describe a so-called editoral structure Stanley RiceGenCodeModern Markup languageCreate a markup language with nested structureGML 1969, Charles Goldfard, Mosher and Raymond Lorie
  • 14.
    1986, SGMLbecomes an international norm(ISO 8879/1986)World Wide Web(WWW) and HyperText Markup Language 1 (HTML 1) 1990, Berneers Lee at CERNExtensible Markup Language 1.0 (XML 1.0) 10 February 1998, XML is a W3C recommandationXML Design goalsXML shall be straightforwardly usable over the Internet.XML shall support a wide variety of applications.XML shall be compatible with SGML.It shall be easy to write programs which process XML documents.The number of optional features in XML is to be kept to the absolute minimum, ideally zero.XML documents should be human-legible and reasonably clear.The XML design should be prepared quickly.The design of XML shall be formal and concise.XML documents shall be easy to create.Terseness in XML markup is of minimal importance.
  • 15.
    Foundations for XMLXML-basedMarkup LanguageseXtensible Markup Language XMLUnicodeUniform Resource Identifier(URI)
  • 16.
    XML Document<?xml version=‘1.0’encoding=“UTF-8”?><!-- Human Resource data--><HumanResource><!-- Information for a person--><Person id=‘1’ slary=“500”> <FirstName>John</FirstName> <MidName><MidName> <LastName>Doe</LastName> <Position>Manager</Position></Person></HumanResource>
  • 17.
    XML Document<?xml version=‘1.0’encoding=“UTF-8”?><!-- Human Resource data--><HumanResource><!-- Information for a person--><Person id=‘1’ slary=“500”><FirstName>John</FirstName><MidName><MidName><LastName>Doe</LastName><Position>Manager</Position></Person></HumanResource>Tags: start-tags and end-tagsTag: the text starting with a < character and ending with a > character.
  • 18.
    XML Document<?xml version=‘1.0’encoding=“UTF-8”?><!-- Human Resource data--><HumanResource><!-- Information for a person--><Person id=‘1’ slary=“500”><FirstName>John</FirstName><MidName><MidName><LastName>Doe</LastName><Position>Manager</Position></Person></HumanResource>Tags: start-tags and end-tagsElementAll the information from the beginning of a start-tag to the end of an end-tag and including everything in between.
  • 19.
    XML Document<?xml version=‘1.0’encoding=“UTF-8”?><!-- Human Resource data--><HumanResource><!-- Information for a person--><Person id=‘1’ slary=“500”><FirstName>John</FirstName><MidName><MidName><LastName>Doe</LastName><Position>Manager</Position></Person></HumanResource>Tags: start-tags and end-tagsElementElement contentIs the text between the start-tag and end-tag of the element.Parsed character data(PCDATA)