Posted by Paul on 02/05/06 00:02
1. "What is causing this error?"
You are probably receiving this error because php is not loading the
php_domxml.dll extension. This extension is requried for the function
you are trying to use.
Make sure you have the php_domxml.dll file and then add the following
to your php.ini configuration file.
extension=php_domxml.dll
2. "I'm looking for a good/simple method to access the values in this
xml tree."
The easiest way to read the values of an XML document is to load the
entire document into a multidimensional array. This method is not
bullet-proof because XML documents can have attributes and can have
elements of the same name. If your document's structure is reliably
consistent, then with a good algorithm, you shouldn't have any
problems.
I have yet to find a solid function/class that creates a
multidimensional array from an xml document. Probably because there is
no solid way of doing it. But here are a few that should at least
work.
http://www.phpclasses.org/browse/package/1598.html
http://www.phpfreaks.com/script/view/202.php
Good Luck
Navigation:
[Reply to this message]
|