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?
| SitePoint Sponsor |
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





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.
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 treeIn 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 13:35.





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.





It is the same concept...organization by a structure of nodes.
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 13:42.
Bookmarks