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

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

    DOM Level 3, the current release of the DOM specification, published in April 2004, added support for XPath and keyboard event handling, as well as an interface for serializing documents as XML. Since the beginning of 2004 there are also W3C DOM Level 3 recommendations for Core, Load and Save, and Validation where Level 3 Core again improves and refines Level 2 Core while the other two modules add new features.…

    • 559 Words
    • 3 Pages
    Satisfactory 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

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

    • 335 Words
    • 1 Page
    Satisfactory 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
  • Good Essays

    Petries Week 5

    • 372 Words
    • 2 Pages

    a. A template-based HTML template to display and process common attributes of higher level, more abstract items. It will make it easy to make a project change or to add a new aspect of the…

    • 372 Words
    • 2 Pages
    Good 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
  • Good Essays

    It is a tool that you can use to eliminate repetitive types of information on your web pages. It is a file the server includes in a web page before sending it out to a browser. It uses headers, navigation panels, and footers. It’s useful because you only need to change one file and every web page using that element picks up the update.…

    • 411 Words
    • 2 Pages
    Good 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
  • 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
  • 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

    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

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

Related Topics