SlideShare a Scribd company logo
1 of 13
CIS-189
 DOM stands for Document Object Model
 Provides tools for working with XML
document in memory
◦ Tools include navigating and editing document
◦ “Interface” refers to how you interact with an object
 What is accessible outside of object?
 XML document in memory called XML
Information Set or Infoset
 DOM is a logical model
◦ How represented in memory may be different from
how document exists on disk
◦ Uses Nodes to represent XML Tree and contents
 Moving data from active memory to disk
 Serialization moves data from objects in
memory to disk
 Deserialization moves data from disk to
objects in memory
 Defines what interfaces (tools) will be
provided
◦ Focus is on results
◦ Doesn’t specify how a tool will work
 Software providers can provide additional
tools
◦ IE might process instructions that Firefox can’t
 Node represents the basic object in a
document
◦ Different kinds of nodes represent different
purposes and values
◦ All types of nodes inherit same initial definition
 One node can “own” another node
◦ Function similar to Windows tree-view of file
system
◦ Type of node can affect how object responds to
code
 Document
 Document Type
 Document
Fragment
 Element
 Entity Reference
 Entity
 Attribute
 Processing
Instruction
 Comment
 CDATA
 Text
 Notation
 Different types of nodes can have different
types of child nodes, or no child nodes
 Document node represents highest level
◦ Document node can have Element, Document type,
Processing Instruction, Comment nodes
◦ Document type, Processing instruction, Comment
nodes cannot have child nodes
Document
Element
Element
Comment
Document
Type
Document
Type
Processing
Instruction
Cannot have
child nodes
 Can have as child nodes: Element, Comment,
Processing instruction, Text, CDATA, Entity
reference
 Attributes of an element exist in Attribute
nodes
◦ Attribute nodes are not considered child and are
not part of DOM tree
Document
Element
(root)
Element
Element Comment
Comment Element
Attribute
 Portion of an XML document
 Has same “ownership” possibilities as an
Element
 Does NOT have to be well-formed
 Isn’t a complete XML document

More Related Content

What's hot (6)

An Introduction to the DOM
An Introduction to the DOMAn Introduction to the DOM
An Introduction to the DOM
 
Dom
Dom Dom
Dom
 
Document Object Model
Document Object ModelDocument Object Model
Document Object Model
 
DOM-XML
DOM-XMLDOM-XML
DOM-XML
 
Document Object Model (DOM)
Document Object Model (DOM)Document Object Model (DOM)
Document Object Model (DOM)
 
Laura Dawson: An Intro to StartWithXML
Laura Dawson: An Intro to StartWithXMLLaura Dawson: An Intro to StartWithXML
Laura Dawson: An Intro to StartWithXML
 

Similar to Introduction To Dom

AAUP 2011 Ebook Basics Introduction/Handout
AAUP 2011 Ebook Basics Introduction/HandoutAAUP 2011 Ebook Basics Introduction/Handout
AAUP 2011 Ebook Basics Introduction/Handout
earkin
 
Xml For Dummies Chapter 14 Processing Xml it-slideshares.blogspot.com
Xml For Dummies   Chapter 14 Processing Xml it-slideshares.blogspot.comXml For Dummies   Chapter 14 Processing Xml it-slideshares.blogspot.com
Xml For Dummies Chapter 14 Processing Xml it-slideshares.blogspot.com
phanleson
 
Entities, Bundles, and Fields: You need to understand this!
Entities, Bundles, and Fields: You need to understand this!Entities, Bundles, and Fields: You need to understand this!
Entities, Bundles, and Fields: You need to understand this!
tedbow
 

Similar to Introduction To Dom (20)

Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
 
Xml and webdata
Xml and webdataXml and webdata
Xml and webdata
 
XML Information set
XML Information setXML Information set
XML Information set
 
Xml
XmlXml
Xml
 
XML Bible
XML BibleXML Bible
XML Bible
 
XML.pptx
XML.pptxXML.pptx
XML.pptx
 
11 wordprocessing ml subject - glossary document
11   wordprocessing ml subject - glossary document11   wordprocessing ml subject - glossary document
11 wordprocessing ml subject - glossary document
 
Oracle soa xml faq
Oracle soa xml faqOracle soa xml faq
Oracle soa xml faq
 
AAUP 2011 Ebook Basics Introduction/Handout
AAUP 2011 Ebook Basics Introduction/HandoutAAUP 2011 Ebook Basics Introduction/Handout
AAUP 2011 Ebook Basics Introduction/Handout
 
2010 Glossary of E-Publishing Terms
2010 Glossary of E-Publishing Terms2010 Glossary of E-Publishing Terms
2010 Glossary of E-Publishing Terms
 
Xml viva questions
Xml viva questionsXml viva questions
Xml viva questions
 
Xml For Dummies Chapter 14 Processing Xml it-slideshares.blogspot.com
Xml For Dummies   Chapter 14 Processing Xml it-slideshares.blogspot.comXml For Dummies   Chapter 14 Processing Xml it-slideshares.blogspot.com
Xml For Dummies Chapter 14 Processing Xml it-slideshares.blogspot.com
 
Web Technology Part 4
Web Technology Part 4Web Technology Part 4
Web Technology Part 4
 
Entities, Bundles, and Fields: You need to understand this!
Entities, Bundles, and Fields: You need to understand this!Entities, Bundles, and Fields: You need to understand this!
Entities, Bundles, and Fields: You need to understand this!
 
DB2 on Mainframe
DB2 on MainframeDB2 on Mainframe
DB2 on Mainframe
 

More from Randy Riness @ South Puget Sound Community College

More from 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
 

Recently uploaded

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
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
QucHHunhnh
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 

Recently uploaded (20)

SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
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
 
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
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
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
 
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
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
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Ữ Â...
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
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
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 

Introduction To Dom

  • 2.  DOM stands for Document Object Model  Provides tools for working with XML document in memory ◦ Tools include navigating and editing document ◦ “Interface” refers to how you interact with an object  What is accessible outside of object?
  • 3.  XML document in memory called XML Information Set or Infoset  DOM is a logical model ◦ How represented in memory may be different from how document exists on disk ◦ Uses Nodes to represent XML Tree and contents
  • 4.  Moving data from active memory to disk  Serialization moves data from objects in memory to disk  Deserialization moves data from disk to objects in memory
  • 5.  Defines what interfaces (tools) will be provided ◦ Focus is on results ◦ Doesn’t specify how a tool will work  Software providers can provide additional tools ◦ IE might process instructions that Firefox can’t
  • 6.  Node represents the basic object in a document ◦ Different kinds of nodes represent different purposes and values ◦ All types of nodes inherit same initial definition  One node can “own” another node ◦ Function similar to Windows tree-view of file system ◦ Type of node can affect how object responds to code
  • 7.
  • 8.  Document  Document Type  Document Fragment  Element  Entity Reference  Entity  Attribute  Processing Instruction  Comment  CDATA  Text  Notation
  • 9.  Different types of nodes can have different types of child nodes, or no child nodes  Document node represents highest level ◦ Document node can have Element, Document type, Processing Instruction, Comment nodes ◦ Document type, Processing instruction, Comment nodes cannot have child nodes
  • 11.  Can have as child nodes: Element, Comment, Processing instruction, Text, CDATA, Entity reference  Attributes of an element exist in Attribute nodes ◦ Attribute nodes are not considered child and are not part of DOM tree
  • 13.  Portion of an XML document  Has same “ownership” possibilities as an Element  Does NOT have to be well-formed  Isn’t a complete XML document