SlideShare ist ein Scribd-Unternehmen logo
1 von 19
Downloaden Sie, um offline zu lesen
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)

Weitere ähnliche Inhalte

Was ist angesagt? (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
 

Andere mochten auch

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
 

Andere mochten auch (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?
 

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentPim van der Noll
 
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Jeffrey Haguewood
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfIngrid Airi González
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024TopCSSGallery
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructureitnewsafrica
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditSkynet Technologies
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch TuesdayIvanti
 
A Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxA Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxAna-Maria Mihalceanu
 
Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessWSO2
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxfnnc6jmgwh
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality AssuranceInflectra
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...panagenda
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Hiroshi SHIBATA
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Alkin Tezuysal
 
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...amber724300
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI AgeCprime
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Nikki Chapple
 
QMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfQMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfROWELL MARQUINA
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesThousandEyes
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Strongerpanagenda
 

Kürzlich hochgeladen (20)

Emixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native developmentEmixa Mendix Meetup 11 April 2024 about Mendix Native development
Emixa Mendix Meetup 11 April 2024 about Mendix Native development
 
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
Email Marketing Automation for Bonterra Impact Management (fka Social Solutio...
 
Generative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdfGenerative Artificial Intelligence: How generative AI works.pdf
Generative Artificial Intelligence: How generative AI works.pdf
 
Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024Top 10 Hubspot Development Companies in 2024
Top 10 Hubspot Development Companies in 2024
 
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical InfrastructureVarsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
Varsha Sewlal- Cyber Attacks on Critical Critical Infrastructure
 
Manual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance AuditManual 508 Accessibility Compliance Audit
Manual 508 Accessibility Compliance Audit
 
2024 April Patch Tuesday
2024 April Patch Tuesday2024 April Patch Tuesday
2024 April Patch Tuesday
 
A Glance At The Java Performance Toolbox
A Glance At The Java Performance ToolboxA Glance At The Java Performance Toolbox
A Glance At The Java Performance Toolbox
 
Accelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with PlatformlessAccelerating Enterprise Software Engineering with Platformless
Accelerating Enterprise Software Engineering with Platformless
 
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptxGenerative AI - Gitex v1Generative AI - Gitex v1.pptx
Generative AI - Gitex v1Generative AI - Gitex v1.pptx
 
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance[Webinar] SpiraTest - Setting New Standards in Quality Assurance
[Webinar] SpiraTest - Setting New Standards in Quality Assurance
 
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
Why device, WIFI, and ISP insights are crucial to supporting remote Microsoft...
 
Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024Long journey of Ruby standard library at RubyConf AU 2024
Long journey of Ruby standard library at RubyConf AU 2024
 
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
Unleashing Real-time Insights with ClickHouse_ Navigating the Landscape in 20...
 
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
JET Technology Labs White Paper for Virtualized Security and Encryption Techn...
 
A Framework for Development in the AI Age
A Framework for Development in the AI AgeA Framework for Development in the AI Age
A Framework for Development in the AI Age
 
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
Microsoft 365 Copilot: How to boost your productivity with AI – Part two: Dat...
 
QMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdfQMMS Lesson 2 - Using MS Excel Formula.pdf
QMMS Lesson 2 - Using MS Excel Formula.pdf
 
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyesAssure Ecommerce and Retail Operations Uptime with ThousandEyes
Assure Ecommerce and Retail Operations Uptime with ThousandEyes
 
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better StrongerModern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
Modern Roaming for Notes and Nomad – Cheaper Faster Better Stronger
 

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