Preview

PHP and the Document Object Model

Good Essays
Open Document
Open Document
2921 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
PHP and the Document Object Model
Obtained from the book, XML and PHP by Vikram Vaswani

PHP and the Document Object Model (DOM)
Document Object Model (DOM)
The Document Object Model (DOM) is a standard interface to access and manipulate structured data. As the name suggests, it does this by modeling, or representing, a document as a hierarchical tree of objects. A number of different object types are defined in the W3C's DOM specification; these objects expose methods and attributes that can be used by the application layer to navigate and process the DOM tree, exploit the relationships between the different branches of the tree, and extract information from it. The W3C's DOM specification defines a number of different objects to represent the different structures that appear within an XML document. For example, elements are represented by an Element object, whereas attributes are represented by Attr objects. Each of these different object types exposes specific methods and properties. Element objects expose a tagName property containing the element name and getAttribute() and setAttribute() methods for attribute manipulation, whereas Attr objects expose a value property containing the value of the particular attribute. These methods and properties can be used by the application layer to navigate and process the DOM tree, exploit the relationships between the different branches of the tree, and extract information from it. The very first specification of the DOM (DOM Level 1) appeared on the W3C's web site in October 1998, and simply specified the "core" features of the DOM—the basic objects and the interfaces to them. The next major upgrade, DOM Level 2, appeared in November 2000; it examined the DOM from the perspective of core functions, event handling, and document traversal. DOM Level 3, which is currently under development, builds on past work, and incorporates additions and changes from other related technologies (XPath, abstract schemas, and so on). As a standard interface to

You May Also Find These Documents Helpful

  • Satisfactory Essays

    9. This attribute of the <li> XHTML element configures the appearance of the unordered or ordered list: type…

    • 335 Words
    • 1 Page
    Satisfactory Essays
  • Good Essays

    Nt1310 Final Exam

    • 746 Words
    • 3 Pages

    The ____ model describes the structure of the elements that are displayed on the Web page.…

    • 746 Words
    • 3 Pages
    Good Essays
  • Good Essays

    HTML is currently in its fifth revision or HTML53. With HTML5 a standard is set for how to display the web page; where pictures are displayed, fonts used for text and total layout of the page. XML (extensible markup language) is used for web documents. CCS (cascading style sheet) is written into the HTML document or attached as a file to define the appearance of the displayed page.…

    • 897 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    unit3lab1

    • 7639 Words
    • 49 Pages

    Use the HTML 5.1 specification and the documents on Web Platform Docs to research three semantic tags.…

    • 7639 Words
    • 49 Pages
    Satisfactory Essays
  • Satisfactory Essays

    It 240 Appendix F

    • 260 Words
    • 2 Pages

    Schema: “The schema of the Active Directory contains a formal definition and set of rules for all objects and attributes of those objects” (Regan, 2006, p.385).…

    • 260 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    CIS1101 past exam paper

    • 1947 Words
    • 19 Pages

    The most expensive form of online advertising on a per thousand viewer basis is a…

    • 1947 Words
    • 19 Pages
    Powerful Essays
  • Satisfactory Essays

    According to Riley, there are many metadata standards used to describe or classify data about data. In a library setting, metadata traditionally refers to elements such as bibliographic information about the collection’s holdings and physical items; however, today’s definition of metadata has evolved to include information about electronic or digital data, rather than primarily a way to describe elements of physical data. Not only do metadata standards serve as systems which describe specific elements of the item which it describes, but the metadata record also serves as an access point for a specific item or resources, be it electronic or physical. The two metadata standards that I familiar with which are Dublin Core and MARC/MARC21. Dublin…

    • 138 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    What Is Xml

    • 488 Words
    • 2 Pages

    XML, or Extensible Markup Language, is an internet language used to represent text and data that can be used without much human or machine intelligence. XML is a lot like HTML except for two major differences. The first is separation of form and content. HTML mostly consists of tags defining the appearance of text. In XML the tags generally define the structure and content of the data, with actual appearance specified by a specific application or an associated stylesheet. The second is XML is extensible. Tags can be defined by individuals or organizations for some specific application, whereas the HTML standard tagset is defined by the World Wide Web Consortium.…

    • 488 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Data modeling language for the development of semantic data models is the structure and semantics of material within an environment or system is characterized by a graphical information model.…

    • 336 Words
    • 2 Pages
    Good Essays
  • Good Essays

    The Document Object Model is a major component of Dynamic Hypertext Markup Language, or DHTML. DHTML is what has allowed web pages to become more interactive over the years. Improved animations, form processing, document manipulation, and online games are all made possible through the use of DHTML. DHTML is primarily composed of JavaScript, XHTML, CSS, and the Document Object Model (DOM). According to Chapter 10 of JavaScript 5th Edition (Gosselin, D. 2011), the DOM “represents the HTML or XML of a Web page that is displayed in a browser.” Therefore there are two aspects of the Document Object Model: HTML DOM and XML DOM. In a nutshell, the DOM is a collection of the HTML or XML elements that are rendered by a browser. To further elaborate let’s take a look at two important objects within the DOM: The Document object and the Image object.…

    • 549 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Cs 2205 Unit 6 Assignment

    • 533 Words
    • 3 Pages

    This is unit 6 personal reflections that basically depends on the unit given reading materials and that is related to. This week my journal activity basically very focused specifically on the weekly unit topic of basic syntax of XML, transporting and storing with XML.…

    • 533 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Active Directory Notes

    • 595 Words
    • 3 Pages

    * X.500- Uses a hierarchical, creates the Directory Information Tree (DIT), Each object has a unique “Distinguished Name”…

    • 595 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    Java Sevelets Tutorial

    • 11567 Words
    • 47 Pages

    JSTL has support for common, structural tasks such as iteration and conditionals, tags for manipulating XML documents, internationalization tags, and SQL tags. It also provides a framework for integrating existing custom tags with JSTL tags.…

    • 11567 Words
    • 47 Pages
    Powerful Essays
  • Good Essays

    Class diagram

    • 649 Words
    • 3 Pages

    Middle Section - Attributes of the class - The attributes describe the variables that describe the qualities of the class. This is only required when describing a specific instance of a class.…

    • 649 Words
    • 3 Pages
    Good Essays
  • Powerful Essays

    working with collections of objects, retrieving data stored in SQL Server, and creating XML content. Subsequent topics introduce new…

    • 947 Words
    • 4 Pages
    Powerful Essays

Related Topics