You are here: Re: xml « PHP « IT news, forums, messages
Re: xml

Posted by Jason Barnett on 05/27/05 19:48

Andy Pieters wrote:
> Hi all
>
> I recently decided to switch to xml for the configuration of our programs.
>
> I am now looking for a good way to handle that xml data.
>
> Basically, what I am looking for is a functionality where I say
>
> Get tag x with attribute1=y, attribute2=z,..., read its contents and put it in
> an associative array.
>

If you want that much granular detail then you might want to use XPATH.
The syntax is obviously a little different than PCRE, but once you
understand it you'll find it's much more efficient (and easier) than
building monstrously large PCRE's.

http://php.net/manual/en/function.dom-domxpath-query.php
http://www.w3.org/TR/xpath#path-abbrev

 

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

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