You are here: Re: newbie: php & xml « PHP Programming Language « IT news, forums, messages
Re: newbie: php & xml

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация