Loading…

Flash Player 9 (or above) is needed to view presentations.
We have detected that you do not have it on your computer. To install it, go here.

Like this presentation? Why not share!
  • 838 views

Document Object Model in XML

Document Object Model in XML

Statistics

Views

Total Views
838
Slideshare-icon Views on SlideShare
657
Embed Views
181

Actions

Likes
0
Downloads
30
Comments
0

1 Embed 181

http://angel.spscc.edu 181

Accessibility

Categories

Upload Details

Uploaded via as Microsoft PowerPoint

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    Introduction To Dom Introduction To Dom Presentation Transcript

    • Introduction to DOM
      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?
      DOM
    • 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
      Model
    • Moving data from active memory to disk
      Serializationmoves data from objects in memory to disk
      Deserialization moves data from disk to objects in memory
      Serialization
    • 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
      XML DOM Specifications
    • 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 Windowstree-view of file system
      Type of node can affect how object responds to code
      Nodes
    • Treeview
    • Document
      Document Type
      Document Fragment
      Element
      Entity Reference
      Entity
      Attribute
      Processing Instruction
      Comment
      CDATA
      Text
      Notation
      Node Types
    • 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
      Working With Nodes
    • Document Structure
      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
      Element Nodes
    • Node Structure
      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
      Document Fragment