SlideShare une entreprise Scribd logo
1  sur  11
Intro to XML CIS-189
Computers work with data represented by binary values 0, 1 represent possible “states” (values) of a switch (off and on) Operating systems and application software represent values differently A Word file storing information about this class will store the data differently than WordPad Working with Data
Text data uses common definitions for representing data Letter ‘a’ is 97 (110001 in binary) A text file with information about this class can be read and used by Word, Wordpad, Excel, Internet Explorer Using Text
“Markup” refers to the use of tags to describe data Data describing data is meta data Tags identify where data begins and ends, and has some information about that data Often referred to as “self describing” Standard Generalized Markup Language was created to offer universal standards for sharing and moving information Markup
HTML is an offshoot of SGML Designed to support display of data Not as complex – or as powerful – as SGML Text-based allows for reading and editing in many environments, applications Designed to be used explicitly with a browser Text values have fewer security issues than passing binary data  What do all of those 0’s and 1’s represent? HTML
Extensible Markup Language fills the gap between display of HTML and complexity of SGML XML is compatible with rules of SGML XML isn’t a language XML is a set of standards about how to create a language to define and work with particular data To XML
Tags are used, similar to HTML Tags mark the beginning and ending of a value A tag must always have a close <name>Randy</name> OR <middle /> Tags are defined as needed No set of predefined tags as in HTML Tags typically aren’t about display Presentation is separate from the data, unlike HTML Using XML
XML is hierarchical Individual items in XML are elements An item may be a single value or group of values One element can belong to another Child and parent Similar to a one-to-many relationship Structure is called a ‘tree’  An item with children is called a branch An item with no children is a leaf XML Structure
An element can contain data An element can contain other elements An element can contain data and other elements Definition of elements for specific data make up a vocabulary Elements
Can define structure of data, independent of specific values Document type definitions(DTD’s) and schemas are used to create definitions Data isn’t part of a DTD or schema Can use definitions to test values Description of data can include validation Defining Elements
Every start tag must end Tags cannot overlap One tag can contain another Can have/must have one root element Must obey naming rules XML is case sensitive Whitespace is considered part of the data Not stripped out like for HTML Rules for Elements

Contenu connexe

Tendances

Jungahan web presentation
Jungahan web presentationJungahan web presentation
Jungahan web presentation
garden8an
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
yht4ever
 
Document Type Definition
Document Type DefinitionDocument Type Definition
Document Type Definition
yht4ever
 

Tendances (20)

XML and Databases
XML and DatabasesXML and Databases
XML and Databases
 
XML Introduction
XML IntroductionXML Introduction
XML Introduction
 
Xml viva questions
Xml viva questionsXml viva questions
Xml viva questions
 
Sgml and xml
Sgml and xmlSgml and xml
Sgml and xml
 
Jungahan web presentation
Jungahan web presentationJungahan web presentation
Jungahan web presentation
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
XML Schema
XML SchemaXML Schema
XML Schema
 
Introduction to xml
Introduction to xmlIntroduction to xml
Introduction to xml
 
XML - Data Modeling
XML - Data ModelingXML - Data Modeling
XML - Data Modeling
 
Introduction to XML and Databases
Introduction to XML and DatabasesIntroduction to XML and Databases
Introduction to XML and Databases
 
uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2uptu web technology unit 2 Xml2
uptu web technology unit 2 Xml2
 
Dtd
DtdDtd
Dtd
 
XML
XMLXML
XML
 
Xml
XmlXml
Xml
 
Document Type Definition
Document Type DefinitionDocument Type Definition
Document Type Definition
 
Xml 215-presentation
Xml 215-presentationXml 215-presentation
Xml 215-presentation
 
Xml dtd
Xml dtdXml dtd
Xml dtd
 
Basic XML
Basic XMLBasic XML
Basic XML
 
Introduction to XML
Introduction to XMLIntroduction to XML
Introduction to XML
 
XML
XMLXML
XML
 

En vedette

Развитие электронного правительства
Развитие электронного правительстваРазвитие электронного правительства
Развитие электронного правительства
НЭПК "СОЮЗ "АТАМЕКЕН"
 
Antonella Tanca: „Lebenslanges Lernen“ - Das Museum als Lernort
Antonella Tanca:  „Lebenslanges Lernen“ - Das Museum als LernortAntonella Tanca:  „Lebenslanges Lernen“ - Das Museum als Lernort
Antonella Tanca: „Lebenslanges Lernen“ - Das Museum als Lernort
Raabe Verlag
 
1.11.14 Для СМИ и организаторов конференций Паладьев
1.11.14 Для СМИ и организаторов конференций Паладьев1.11.14 Для СМИ и организаторов конференций Паладьев
1.11.14 Для СМИ и организаторов конференций Паладьев
Олег Паладьев
 

En vedette (8)

I Stand With Immigrants
I Stand With ImmigrantsI Stand With Immigrants
I Stand With Immigrants
 
Развитие электронного правительства
Развитие электронного правительстваРазвитие электронного правительства
Развитие электронного правительства
 
Antonella Tanca: „Lebenslanges Lernen“ - Das Museum als Lernort
Antonella Tanca:  „Lebenslanges Lernen“ - Das Museum als LernortAntonella Tanca:  „Lebenslanges Lernen“ - Das Museum als Lernort
Antonella Tanca: „Lebenslanges Lernen“ - Das Museum als Lernort
 
Escritossobreche0223[1]
Escritossobreche0223[1]Escritossobreche0223[1]
Escritossobreche0223[1]
 
how does 1 million new jobs sound?
how does 1 million new jobs sound?how does 1 million new jobs sound?
how does 1 million new jobs sound?
 
Programa
ProgramaPrograma
Programa
 
1.11.14 Для СМИ и организаторов конференций Паладьев
1.11.14 Для СМИ и организаторов конференций Паладьев1.11.14 Для СМИ и организаторов конференций Паладьев
1.11.14 Для СМИ и организаторов конференций Паладьев
 
Mt Pt Bloque 5 B Comunicacion Turistica Web 20
Mt Pt Bloque 5 B Comunicacion Turistica Web 20Mt Pt Bloque 5 B Comunicacion Turistica Web 20
Mt Pt Bloque 5 B Comunicacion Turistica Web 20
 

Similaire à Intro to XML

Document type definition
Document type definitionDocument type definition
Document type definition
Raghu nath
 
chapter 4 web authoring unit 4 xml.pptx
chapter 4 web authoring  unit 4 xml.pptxchapter 4 web authoring  unit 4 xml.pptx
chapter 4 web authoring unit 4 xml.pptx
amare63
 
Week1 xml
Week1 xmlWeek1 xml
Week1 xml
hapy
 
Introducing xml
Introducing xmlIntroducing xml
Introducing xml
Raghu nath
 

Similaire à Intro to XML (20)

CIS-189 Final Review
CIS-189 Final ReviewCIS-189 Final Review
CIS-189 Final Review
 
Xml and Co.
Xml and Co.Xml and Co.
Xml and Co.
 
Web Technologies Unit 2 Print.pdf
Web Technologies Unit 2 Print.pdfWeb Technologies Unit 2 Print.pdf
Web Technologies Unit 2 Print.pdf
 
Document type definition
Document type definitionDocument type definition
Document type definition
 
Well Formed XML
Well Formed XMLWell Formed XML
Well Formed XML
 
XML
XMLXML
XML
 
XML.pptx
XML.pptxXML.pptx
XML.pptx
 
Xml
XmlXml
Xml
 
Xml programming language myassignmenthelp.net
Xml programming  language myassignmenthelp.netXml programming  language myassignmenthelp.net
Xml programming language myassignmenthelp.net
 
01 Xml Begin
01 Xml Begin01 Xml Begin
01 Xml Begin
 
XML
XMLXML
XML
 
XML-Unit 1.ppt
XML-Unit 1.pptXML-Unit 1.ppt
XML-Unit 1.ppt
 
O9xml
O9xmlO9xml
O9xml
 
CTDA Workshop on XML and MODS
CTDA Workshop on XML and MODSCTDA Workshop on XML and MODS
CTDA Workshop on XML and MODS
 
chapter 4 web authoring unit 4 xml.pptx
chapter 4 web authoring  unit 4 xml.pptxchapter 4 web authoring  unit 4 xml.pptx
chapter 4 web authoring unit 4 xml.pptx
 
Xml intro1
Xml intro1Xml intro1
Xml intro1
 
Week1 xml
Week1 xmlWeek1 xml
Week1 xml
 
Xml
XmlXml
Xml
 
Introducing xml
Introducing xmlIntroducing xml
Introducing xml
 
XML Schema.pptx
XML Schema.pptxXML Schema.pptx
XML Schema.pptx
 

Plus de Randy Riness @ South Puget Sound Community College

Plus de Randy Riness @ South Puget Sound Community College (20)

Stored procedures
Stored proceduresStored procedures
Stored procedures
 
3 sql overview
3 sql overview3 sql overview
3 sql overview
 
Normalization
NormalizationNormalization
Normalization
 
CIS160 final review
CIS160 final reviewCIS160 final review
CIS160 final review
 
SQL Constraints
SQL ConstraintsSQL Constraints
SQL Constraints
 
CIS 245 Final Review
CIS 245 Final ReviewCIS 245 Final Review
CIS 245 Final Review
 
CIS145 Final Review
CIS145 Final ReviewCIS145 Final Review
CIS145 Final Review
 
Cis166 Final Review C#
Cis166 Final Review C#Cis166 Final Review C#
Cis166 Final Review C#
 
Classes and Objects
Classes and ObjectsClasses and Objects
Classes and Objects
 
CIS245 sql
CIS245 sqlCIS245 sql
CIS245 sql
 
Cis245 Midterm Review
Cis245 Midterm ReviewCis245 Midterm Review
Cis245 Midterm Review
 
CSS
CSSCSS
CSS
 
XPath
XPathXPath
XPath
 
XSLT Overview
XSLT OverviewXSLT Overview
XSLT Overview
 
Views
ViewsViews
Views
 
CIS282 Midterm review
CIS282 Midterm reviewCIS282 Midterm review
CIS282 Midterm review
 
Schemas 2 - Restricting Values
Schemas 2 - Restricting ValuesSchemas 2 - Restricting Values
Schemas 2 - Restricting Values
 
CIS 145 test 1 review
CIS 145 test 1 reviewCIS 145 test 1 review
CIS 145 test 1 review
 
XML schemas
XML schemasXML schemas
XML schemas
 
Document type definitions part 2
Document type definitions part 2Document type definitions part 2
Document type definitions part 2
 

Dernier

The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Dernier (20)

Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17How to Add New Custom Addons Path in Odoo 17
How to Add New Custom Addons Path in Odoo 17
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)Jamworks pilot and AI at Jisc (20/03/2024)
Jamworks pilot and AI at Jisc (20/03/2024)
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 

Intro to XML

  • 1. Intro to XML CIS-189
  • 2. Computers work with data represented by binary values 0, 1 represent possible “states” (values) of a switch (off and on) Operating systems and application software represent values differently A Word file storing information about this class will store the data differently than WordPad Working with Data
  • 3. Text data uses common definitions for representing data Letter ‘a’ is 97 (110001 in binary) A text file with information about this class can be read and used by Word, Wordpad, Excel, Internet Explorer Using Text
  • 4. “Markup” refers to the use of tags to describe data Data describing data is meta data Tags identify where data begins and ends, and has some information about that data Often referred to as “self describing” Standard Generalized Markup Language was created to offer universal standards for sharing and moving information Markup
  • 5. HTML is an offshoot of SGML Designed to support display of data Not as complex – or as powerful – as SGML Text-based allows for reading and editing in many environments, applications Designed to be used explicitly with a browser Text values have fewer security issues than passing binary data What do all of those 0’s and 1’s represent? HTML
  • 6. Extensible Markup Language fills the gap between display of HTML and complexity of SGML XML is compatible with rules of SGML XML isn’t a language XML is a set of standards about how to create a language to define and work with particular data To XML
  • 7. Tags are used, similar to HTML Tags mark the beginning and ending of a value A tag must always have a close <name>Randy</name> OR <middle /> Tags are defined as needed No set of predefined tags as in HTML Tags typically aren’t about display Presentation is separate from the data, unlike HTML Using XML
  • 8. XML is hierarchical Individual items in XML are elements An item may be a single value or group of values One element can belong to another Child and parent Similar to a one-to-many relationship Structure is called a ‘tree’ An item with children is called a branch An item with no children is a leaf XML Structure
  • 9. An element can contain data An element can contain other elements An element can contain data and other elements Definition of elements for specific data make up a vocabulary Elements
  • 10. Can define structure of data, independent of specific values Document type definitions(DTD’s) and schemas are used to create definitions Data isn’t part of a DTD or schema Can use definitions to test values Description of data can include validation Defining Elements
  • 11. Every start tag must end Tags cannot overlap One tag can contain another Can have/must have one root element Must obey naming rules XML is case sensitive Whitespace is considered part of the data Not stripped out like for HTML Rules for Elements