SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Mar 2001
    Location
    Ottawa, Canada
    Posts
    18
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    DOM document object model <<--->> PHP

    is it possible for php to recongize the DOM (document object model).

    ???
    is there a config option when setting up php that I missed, or is this something that just can't happen?
    thanks,
    brennen

  2. #2
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    AFAIK the DOM is a client side thing, PHP is a server side thing, you can't access objects of the DOM in PHP.
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  3. #3
    ********* Callithumpian silver trophy freakysid's Avatar
    Join Date
    Jun 2000
    Location
    Sydney, Australia
    Posts
    3,798
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Actually, these past couple of hours I have been reading up on parsing XML (well RDF actuallly) in PHP. Not that I understand what I am about to say, but the DOM can be used to represent an XML document as a data tree In other words you can create a DOM object and use it to parse an XML file which gets made into a data tree contained within the DOM object. .NET also supports DOMXML in a big way I believe.

    PHP has a library of functions for DOM XML
    http://www.php.net/manual/it/ref.domxml.php

    I just got my devshed.com newsletter which has a link to the second article in a series on XML in PHP and in the second part it discusses using DOMXML
    http://www.devshed.com/Client_Side/XML/XMLwithPHP2/

    http://www.phpbuilder.com/columns/matt20001228.php3
    Last edited by freakysid; Aug 3, 2001 at 12:35.

  4. #4
    Dumb PHP codin' cat
    Join Date
    Aug 2000
    Location
    San Diego, CA
    Posts
    5,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is the DOM for XML the same as the DOM as associated with javascript? Do you happen to know?
    Please don't PM me with questions.
    Use the forums, that is what they are here for.

  5. #5
    You talkin to me? Anarchos's Avatar
    Join Date
    Oct 2000
    Location
    Austin, TX
    Posts
    1,438
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It is the same concept...organization by a structure of nodes.

  6. #6
    ********* Callithumpian silver trophy freakysid's Avatar
    Join Date
    Jun 2000
    Location
    Sydney, Australia
    Posts
    3,798
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I know nothing

    But I'm willing to learn

    This would be a good place to start http://www.w3.org/DOM/

    This is from http://www.oasis-open.org/cover/dom.html
    The W3C Document Object Model is a "platform- and language-neutral interface that will allow programs and scripts to dynamically access and update the content, structure and style of documents. The document can be further processed and the results of that processing can be incorporated back into the presented page."

    "The goal of the DOM group is to define a programmatic interface for XML and HTML. The DOM is separated into three parts: Core, HTML, and XML. The Core DOM provides a low-level set of objects that can represent any structured document. While by itself this interface is capable of representing any HTML or XML document, the core interface is a compact and minimal design for manipulating the document's contents. Depending upon the DOM's usage, the core DOM interface may not be convenient or appropriate for all users. The HTML and XML specifications provide additional, higher-level interfaces that are used with the core specification to provide a more convenient view into the document.
    Last edited by freakysid; Aug 3, 2001 at 12:42.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •