PHP3 is long since out of date (though I suspect some legacy sites still use it). Afaik it does not havve DOM support so you must mean PHP4. Check the latest version of the manual for the correct function names - but beware of version changes :

Try to use at least PHP4.2.3 for DOM support.
You will find the functions you expect, *are* defined.

You also walk through a node's collection of objects and arrays after checking the structure using print_r($node). This will show you that the structure of nodes in PHP has changed between 4.1.2 and 4.2 for example - but it wil give you a clue how to iterate through them without using DOM functions.

As I found to my detriment last week when my ISP upgraded to 4.1.2, all the DOM functions have been in a state of flux (actually this is stated in the manual anyway - the functions are experimental and subject to change).

Since you ask, the DOM functions have an exact equivalent in all languages, java, javascript, VB andf PHP all have analogous function names which do the same things like adding nodes, getting attributes etc. So with a copy of the MSXML SDK and the PHP manual you should be able to work your way though this no problem.

The other way to handle XML is of course with XSL - can you install Expat XSLT processor on your machine and hack around with that ? Since RDF is any old XML, you can probably find a whole bunch of XSL sheets to handle it and adapt some of those.

Cheers,
Neil Smith.

At 01:26 03/02/2003 +0000, you wrote:
From: "parvez Soobhany" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Date: Sun, 2 Feb 2003 20:49:37 +0400
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_001F_01C2CAFC.9989A7E0"
Message-ID: <[EMAIL PROTECTED]>
Subject: xml rdf and php

hii
i'm a university student, doing my project on rdf , xml and php. i'm tying to use php dom of php3.0 to create xml pages and to add tags...but the functions are not functioning...the function are declared as undefined...can any one help
plus, has any one some knowledge about how to to use RDF with PHP, for qurying XML pages

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to