SlideShare a Scribd company logo
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
Introduction To Dom
 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

PDF
10x10presentation
PPTX
Introduction to XML
PPTX
Document object model(dom)
PPTX
Dom in javascript
PPT
Intro to xml
PPTX
Applying xml
10x10presentation
Introduction to XML
Document object model(dom)
Dom in javascript
Intro to xml
Applying xml

What's hot (6)

PPTX
An Introduction to the DOM
PPTX
PPTX
Document Object Model
PPTX
Document Object Model (DOM)
PPTX
Laura Dawson: An Intro to StartWithXML
An Introduction to the DOM
Document Object Model
Document Object Model (DOM)
Laura Dawson: An Intro to StartWithXML
Ad

Similar to Introduction To Dom (20)

PPTX
Web data management (chapter-1)
PDF
Understanding Dom
PDF
PPTX
GRADE 12 UNIT 4 computer science Ethiopian.pptx
PPTX
Web Technology Part 4
PDF
Web programming unit IIII XML &DOM NOTES BY BHAVSINGH MALOTH
PPT
Xml and DTD's
PPTX
PPTX
chapter 4 web authoring unit 4 xml.pptx
PPT
DATA INTEGRATION (Gaining Access to Diverse Data).ppt
PPT
Xml Presentation-1
PPT
PPT
cis110-xml-xhtml engineering computer science
PPT
PPT
Web Services Part 1
PPTX
01_XMLDataModel.pptx
PPT
PPTX
advDBMS_XML.pptx
Web data management (chapter-1)
Understanding Dom
GRADE 12 UNIT 4 computer science Ethiopian.pptx
Web Technology Part 4
Web programming unit IIII XML &DOM NOTES BY BHAVSINGH MALOTH
Xml and DTD's
chapter 4 web authoring unit 4 xml.pptx
DATA INTEGRATION (Gaining Access to Diverse Data).ppt
Xml Presentation-1
cis110-xml-xhtml engineering computer science
Web Services Part 1
01_XMLDataModel.pptx
advDBMS_XML.pptx
Ad

More from Randy Riness @ South Puget Sound Community College (20)

Recently uploaded (20)

PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
Institutional Correction lecture only . . .
PDF
Pre independence Education in Inndia.pdf
PPTX
human mycosis Human fungal infections are called human mycosis..pptx
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PPTX
master seminar digital applications in india
PDF
RMMM.pdf make it easy to upload and study
PDF
Sports Quiz easy sports quiz sports quiz
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
01-Introduction-to-Information-Management.pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
GDM (1) (1).pptx small presentation for students
PDF
Supply Chain Operations Speaking Notes -ICLT Program
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
Institutional Correction lecture only . . .
Pre independence Education in Inndia.pdf
human mycosis Human fungal infections are called human mycosis..pptx
STATICS OF THE RIGID BODIES Hibbelers.pdf
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
master seminar digital applications in india
RMMM.pdf make it easy to upload and study
Sports Quiz easy sports quiz sports quiz
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPH.pptx obstetrics and gynecology in nursing
2.FourierTransform-ShortQuestionswithAnswers.pdf
Computing-Curriculum for Schools in Ghana
01-Introduction-to-Information-Management.pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Physiotherapy_for_Respiratory_and_Cardiac_Problems WEBBER.pdf
O7-L3 Supply Chain Operations - ICLT Program
GDM (1) (1).pptx small presentation for students
Supply Chain Operations Speaking Notes -ICLT Program

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
  • 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