SlideShare une entreprise Scribd logo
1  sur  19
Basic XML Van Hoang Nguyen Mail: startnewday85@gmail.com Department of Computer Science
Computer file types cs dts htm prc asf rmvb rp mpeg2 mpg ppt mpeg4 rmx dat ra mod mpeg 7z lit rax xslt avi divx m2ts rmj b4f ramp doc vlc m3u jpeg xlsx mp2 avi wav ifo rtx ico ini pptx swf flac rvx zip mkv js gif aac sdp pdf rar css nuv dv png mlp mka rtf wma ape it xhtml mp3 xml m2v mkv mxf smil dip odp dv mov smi ppsm mpeg3 html pps cpp java flv img sea docx iso jpe mp4 tif gxf m1v config vb jpg m2t asx ppsx bmp mpeg1 oma xls ogg rm aif qt a52 tiff ac3 pot ps m3u8
Computer file types Is just a sequence(stream) of bits( 1s and 0s) ,[object Object]
 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 all,[object Object]
A brief history of markup ,[object Object],The idea of separation between the contents and formating of a document ,[object Object],A set of label allowing to describe a so-called editoral structure ,[object Object],GenCode Modern Markup language Create a markup language with nested structure GML ,[object Object]
 1986, SGML becomes an international norm(ISO 8879/1986)World Wide Web(WWW) and HyperText Markup Language 1 (HTML 1) ,[object Object],Extensible Markup Language 1.0 (XML 1.0) ,[object Object],[object Object]
Foundations for XML XML-based Markup Languages eXtensible Markup Language XML Unicode Uniform 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-tags Tag: 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-tags Element All 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-tags Element Element content Is the text between the start-tag and end-tag of the element. Parsed character data(PCDATA)

Contenu connexe

Tendances (20)

Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
XML and DTD
XML and DTDXML and DTD
XML and DTD
 
01 Xml Begin
01 Xml Begin01 Xml Begin
01 Xml Begin
 
Xml dtd
Xml dtdXml dtd
Xml dtd
 
XML
XMLXML
XML
 
Extensible Markup Language (XML)
Extensible Markup Language (XML)Extensible Markup Language (XML)
Extensible Markup Language (XML)
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
XML, DTD & XSD Overview
XML, DTD & XSD OverviewXML, DTD & XSD Overview
XML, DTD & XSD Overview
 
Xml
XmlXml
Xml
 
Xml 215-presentation
Xml 215-presentationXml 215-presentation
Xml 215-presentation
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
XML
XMLXML
XML
 
Xml tutorial
Xml tutorialXml tutorial
Xml tutorial
 
Fergus Fahey - DRI/ARA(I) Training: Introduction to EAD - Introduction to XML
Fergus Fahey - DRI/ARA(I) Training: Introduction to EAD - Introduction to XMLFergus Fahey - DRI/ARA(I) Training: Introduction to EAD - Introduction to XML
Fergus Fahey - DRI/ARA(I) Training: Introduction to EAD - Introduction to XML
 
Xml ppt
Xml pptXml ppt
Xml ppt
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
4 xml namespaces and xml schema
4   xml namespaces and xml schema4   xml namespaces and xml schema
4 xml namespaces and xml schema
 
XML | Computer Science
XML | Computer ScienceXML | Computer Science
XML | Computer Science
 
Xml
XmlXml
Xml
 

En vedette

Difference Between DOM and SAX parser in java with examples
Difference Between DOM and SAX parser in java with examplesDifference Between DOM and SAX parser in java with examples
Difference Between DOM and SAX parser in java with examplesSaid Benaissa
 
Xml Presentation-1
Xml Presentation-1Xml Presentation-1
Xml Presentation-1Sudharsan S
 
Xml Presentation-3
Xml Presentation-3Xml Presentation-3
Xml Presentation-3Sudharsan S
 
XML.ppt
XML.pptXML.ppt
XML.pptbutest
 
XML - What is XML?
XML - What is XML?XML - What is XML?
XML - What is XML?sandur
 

En vedette (8)

Difference Between DOM and SAX parser in java with examples
Difference Between DOM and SAX parser in java with examplesDifference Between DOM and SAX parser in java with examples
Difference Between DOM and SAX parser in java with examples
 
Xml Presentation-1
Xml Presentation-1Xml Presentation-1
Xml Presentation-1
 
Xml Presentation-3
Xml Presentation-3Xml Presentation-3
Xml Presentation-3
 
XML SAX PARSING
XML SAX PARSING XML SAX PARSING
XML SAX PARSING
 
XML.ppt
XML.pptXML.ppt
XML.ppt
 
DOM and SAX
DOM and SAXDOM and SAX
DOM and SAX
 
Java XML Parsing
Java XML ParsingJava XML Parsing
Java XML Parsing
 
XML - What is XML?
XML - What is XML?XML - What is XML?
XML - What is XML?
 

Similaire à Basic XML

Everything You Always Wanted To Know About XML But Were Afraid To Ask
Everything You Always Wanted To Know About XML But Were Afraid To AskEverything You Always Wanted To Know About XML But Were Afraid To Ask
Everything You Always Wanted To Know About XML But Were Afraid To AskRichard Davis
 
Douglas Crockford Presentation Jsonsaga
Douglas Crockford Presentation JsonsagaDouglas Crockford Presentation Jsonsaga
Douglas Crockford Presentation JsonsagaAjax Experience 2009
 
Kingston University Multimedia Production - Session 2: Layers of technology
Kingston University Multimedia Production - Session 2: Layers of technologyKingston University Multimedia Production - Session 2: Layers of technology
Kingston University Multimedia Production - Session 2: Layers of technologypetter
 
Jsonsaga
JsonsagaJsonsaga
Jsonsaganohmad
 
The JSON Saga
The JSON SagaThe JSON Saga
The JSON Sagakaven yan
 
Digital + Container List
Digital + Container ListDigital + Container List
Digital + Container Listguest53eac8
 
CrashCourse: XML technologies
CrashCourse: XML technologiesCrashCourse: XML technologies
CrashCourse: XML technologiesESRI Bulgaria
 
Web Services Part 1
Web Services Part 1Web Services Part 1
Web Services Part 1patinijava
 
Php Simple Xml
Php Simple XmlPhp Simple Xml
Php Simple Xmlmussawir20
 
Introduction to web design
Introduction to web designIntroduction to web design
Introduction to web designStephen Pollard
 
XML Presentation-2
XML Presentation-2XML Presentation-2
XML Presentation-2Sudharsan S
 

Similaire à Basic XML (20)

About XML
About XMLAbout XML
About XML
 
Everything You Always Wanted To Know About XML But Were Afraid To Ask
Everything You Always Wanted To Know About XML But Were Afraid To AskEverything You Always Wanted To Know About XML But Were Afraid To Ask
Everything You Always Wanted To Know About XML But Were Afraid To Ask
 
Douglas Crockford Presentation Jsonsaga
Douglas Crockford Presentation JsonsagaDouglas Crockford Presentation Jsonsaga
Douglas Crockford Presentation Jsonsaga
 
Kingston University Multimedia Production - Session 2: Layers of technology
Kingston University Multimedia Production - Session 2: Layers of technologyKingston University Multimedia Production - Session 2: Layers of technology
Kingston University Multimedia Production - Session 2: Layers of technology
 
Pmm05 16
Pmm05 16Pmm05 16
Pmm05 16
 
Xml
XmlXml
Xml
 
Xmlphp
XmlphpXmlphp
Xmlphp
 
Jsonsaga
JsonsagaJsonsaga
Jsonsaga
 
Xml
XmlXml
Xml
 
The JSON Saga
The JSON SagaThe JSON Saga
The JSON Saga
 
Digital + Container List
Digital + Container ListDigital + Container List
Digital + Container List
 
Xml
XmlXml
Xml
 
PDF Localization
PDF  LocalizationPDF  Localization
PDF Localization
 
CrashCourse: XML technologies
CrashCourse: XML technologiesCrashCourse: XML technologies
CrashCourse: XML technologies
 
XML and XSLT
XML and XSLTXML and XSLT
XML and XSLT
 
Web Services Part 1
Web Services Part 1Web Services Part 1
Web Services Part 1
 
Php Simple Xml
Php Simple XmlPhp Simple Xml
Php Simple Xml
 
Introduction to web design
Introduction to web designIntroduction to web design
Introduction to web design
 
XML Presentation-2
XML Presentation-2XML Presentation-2
XML Presentation-2
 
Xml Demystified
Xml DemystifiedXml Demystified
Xml Demystified
 

Plus de Hoang Nguyen

GANs and Applications
GANs and ApplicationsGANs and Applications
GANs and ApplicationsHoang Nguyen
 
Scrum - An introduction
Scrum - An introductionScrum - An introduction
Scrum - An introductionHoang Nguyen
 
Introduction to Cross-platform App Development
Introduction to Cross-platform App DevelopmentIntroduction to Cross-platform App Development
Introduction to Cross-platform App DevelopmentHoang Nguyen
 
Conistency of random forests
Conistency of random forestsConistency of random forests
Conistency of random forestsHoang Nguyen
 
Trust - Digital Signature
Trust - Digital SignatureTrust - Digital Signature
Trust - Digital SignatureHoang Nguyen
 
SOME SECURITY CHALLENGES IN CLOUD COMPUTING
SOME SECURITY CHALLENGES  IN CLOUD COMPUTINGSOME SECURITY CHALLENGES  IN CLOUD COMPUTING
SOME SECURITY CHALLENGES IN CLOUD COMPUTINGHoang Nguyen
 
Information, Data and Decision Making
Information, Data and Decision MakingInformation, Data and Decision Making
Information, Data and Decision MakingHoang Nguyen
 
Multiple processor systems
Multiple processor systemsMultiple processor systems
Multiple processor systemsHoang Nguyen
 
Multiprocessor Systems
Multiprocessor SystemsMultiprocessor Systems
Multiprocessor SystemsHoang Nguyen
 
Introduction to AOS course
Introduction to AOS courseIntroduction to AOS course
Introduction to AOS courseHoang Nguyen
 
Background Knowledge
Background KnowledgeBackground Knowledge
Background KnowledgeHoang Nguyen
 
Introduction to Information Security Course
Introduction to Information Security CourseIntroduction to Information Security Course
Introduction to Information Security CourseHoang Nguyen
 
Introduction to CNS Course
Introduction to CNS CourseIntroduction to CNS Course
Introduction to CNS CourseHoang Nguyen
 

Plus de Hoang Nguyen (20)

GANs and Applications
GANs and ApplicationsGANs and Applications
GANs and Applications
 
Scrum - An introduction
Scrum - An introductionScrum - An introduction
Scrum - An introduction
 
ORM in Django
ORM in DjangoORM in Django
ORM in Django
 
Introduction to Cross-platform App Development
Introduction to Cross-platform App DevelopmentIntroduction to Cross-platform App Development
Introduction to Cross-platform App Development
 
Conistency of random forests
Conistency of random forestsConistency of random forests
Conistency of random forests
 
Trust - Digital Signature
Trust - Digital SignatureTrust - Digital Signature
Trust - Digital Signature
 
Key Exchange
Key ExchangeKey Exchange
Key Exchange
 
SOME SECURITY CHALLENGES IN CLOUD COMPUTING
SOME SECURITY CHALLENGES  IN CLOUD COMPUTINGSOME SECURITY CHALLENGES  IN CLOUD COMPUTING
SOME SECURITY CHALLENGES IN CLOUD COMPUTING
 
Stream ciphers
Stream ciphersStream ciphers
Stream ciphers
 
Classical ciphers
Classical ciphersClassical ciphers
Classical ciphers
 
Confidentiality
ConfidentialityConfidentiality
Confidentiality
 
Information, Data and Decision Making
Information, Data and Decision MakingInformation, Data and Decision Making
Information, Data and Decision Making
 
Multiple processor systems
Multiple processor systemsMultiple processor systems
Multiple processor systems
 
Multiprocessor Systems
Multiprocessor SystemsMultiprocessor Systems
Multiprocessor Systems
 
Introduction to AOS course
Introduction to AOS courseIntroduction to AOS course
Introduction to AOS course
 
Background Knowledge
Background KnowledgeBackground Knowledge
Background Knowledge
 
Introduction to Information Security Course
Introduction to Information Security CourseIntroduction to Information Security Course
Introduction to Information Security Course
 
Introduction to CNS Course
Introduction to CNS CourseIntroduction to CNS Course
Introduction to CNS Course
 
Dynamic Testing
Dynamic TestingDynamic Testing
Dynamic Testing
 
Nosql intro
Nosql introNosql intro
Nosql intro
 

Dernier

SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESmohitsingh558521
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.Curtis Poe
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfMounikaPolabathina
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rick Flair
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebUiPathCommunity
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????blackmambaettijean
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024Stephanie Beckett
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsNathaniel Shimoni
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .Alan Dix
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxLoriGlavin3
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersRaghuram Pandurangan
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxBkGupta21
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demoHarshalMandlekar2
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 

Dernier (20)

SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICESSALESFORCE EDUCATION CLOUD | FEXLE SERVICES
SALESFORCE EDUCATION CLOUD | FEXLE SERVICES
 
How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.How AI, OpenAI, and ChatGPT impact business and software.
How AI, OpenAI, and ChatGPT impact business and software.
 
What is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdfWhat is DBT - The Ultimate Data Build Tool.pdf
What is DBT - The Ultimate Data Build Tool.pdf
 
Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...Rise of the Machines: Known As Drones...
Rise of the Machines: Known As Drones...
 
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data PrivacyTrustArc Webinar - How to Build Consumer Trust Through Data Privacy
TrustArc Webinar - How to Build Consumer Trust Through Data Privacy
 
Dev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio WebDev Dives: Streamline document processing with UiPath Studio Web
Dev Dives: Streamline document processing with UiPath Studio Web
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
What is Artificial Intelligence?????????
What is Artificial Intelligence?????????What is Artificial Intelligence?????????
What is Artificial Intelligence?????????
 
What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024What's New in Teams Calling, Meetings and Devices March 2024
What's New in Teams Calling, Meetings and Devices March 2024
 
Time Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directionsTime Series Foundation Models - current state and future directions
Time Series Foundation Models - current state and future directions
 
From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .From Family Reminiscence to Scholarly Archive .
From Family Reminiscence to Scholarly Archive .
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptxThe Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
The Role of FIDO in a Cyber Secure Netherlands: FIDO Paris Seminar.pptx
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Generative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information DevelopersGenerative AI for Technical Writer or Information Developers
Generative AI for Technical Writer or Information Developers
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
unit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptxunit 4 immunoblotting technique complete.pptx
unit 4 immunoblotting technique complete.pptx
 
Sample pptx for embedding into website for demo
Sample pptx for embedding into website for demoSample pptx for embedding into website for demo
Sample pptx for embedding into website for demo
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 

Basic XML

  • 1. Basic XML Van Hoang Nguyen Mail: startnewday85@gmail.com Department of Computer Science
  • 2. Computer file types cs dts htm prc asf rmvb rp mpeg2 mpg ppt mpeg4 rmx dat ra mod mpeg 7z lit rax xslt avi divx m2ts rmj b4f ramp doc vlc m3u jpeg xlsx mp2 avi wav ifo rtx ico ini pptx swf flac rvx zip mkv js gif aac sdp pdf rar css nuv dv png mlp mka rtf wma ape it xhtml mp3 xml m2v mkv mxf smil dip odp dv mov smi ppsm mpeg3 html pps cpp java flv img sea docx iso jpe mp4 tif gxf m1v config vb jpg m2t asx ppsx bmp mpeg1 oma xls ogg rm aif qt a52 tiff ac3 pot ps m3u8
  • 3.
  • 4. Can only be read and produced by special applications
  • 5. meta-data is embedded
  • 9. Can be read and produced by any application with standard encoding
  • 12.
  • 13.
  • 14.
  • 15. Foundations for XML XML-based Markup Languages eXtensible Markup Language XML Unicode Uniform 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-tags Tag: 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-tags Element All 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-tags Element Element content Is the text between the start-tag and end-tag of the element. Parsed character data(PCDATA)
  • 20.
  • 21. Are attached to the start-tag
  • 22. Must have a value(agree a empty value)
  • 23. Those values must be in quotes
  • 24.
  • 25. 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-tags Element Element content Attributes XML declaration Comment
  • 26. 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-tags Element Element content Attributes XML declaration Comment Instruction
  • 27.
  • 28. Must have a value(can use empty string)
  • 29. Those values must be in quotes(can use sigle or double quotes, note: conflict)
  • 30. Can’t have more than one attribute with the same name on an element
  • 31. Names can not start with numbers or other punctuation character.
  • 32. Names can’t contain spaces.
  • 33. Names can’t contain the colon (:) character.
  • 34. Names can not start with the leter xml, in uppercase, lowercase, or mixed.Well-Formed XML Document Element names must obey XML naming conventions <?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 is case sensitive <Person id=‘1’ slary=“500”> <FirstName>John<MidName></FirstName></MidName> <LastName>Doe</LastName> </Person> Every start-tag mus have a matching end-tag, or be a self-closing tag Tags can’t overlap; elements must be properly nested XML documents can have only one root element XML will keep white space in PCDATA
  • 35. Well-Formed XML Document There are some reserved characters that you can’t include in your PCDATA because they are used in XML syntax: <, > and & characters. <comparison> 6 is <7 & 7>6</comparison> <blah>Some <text in an element</blah> 1. Using escaping characters : <comparison> 6 is &lt; 7 &amp; 7 &gt; 6</comparison> <blah>Some &lt; text in an element</blah> 2. Using CDATA sections: <comparison>[CDATA[ 6 is < 7 & 7 > 6]]</comparison> <blah>[CDATA[Some <text in an element]]</blah>
  • 36. Summary 1. Essential XML: is a markup language 2. Extensible: customer tags => You can define new markup languages 3. You known what well-formed XML document is and how to create it You had well in hand XML technology!
  • 37. WSDL hCalendar rel-enclosure XDBMS rel-home XSLT SPARQL hCard XPath DOM rel-payment XSD rel-lience xFolk XML RDF XBase hResume DTD rel-nofollow adr XPointer XLink hReview XQuery SAX rel-directory XOXO geo vote-link XFN rel-tag XMDP hAtom