You are here: php5 dom functions « All PHP « IT news, forums, messages
php5 dom functions

Posted by dickgiesser on 10/02/84 11:32

Hi,

I'm creating a class to return me strings from an xml file given a
group name and a string id. I thought the best layout for the xml would
be:

<strings>
<group1>
<string><id>1</id><value>I add the %s1 but not the
%s2</value></string>
<string><id>1</id><value>I add the %s1 but not the
%s2</value></string>
</group1>
<strings>

How would I go about to get the right value now?
I thought of using getElementsByTagName to get the right group. But how
would I know get the right string value given the id?
I'm totally new to php5's dom function and I'd appreciate it if someone
could give me some direction.

Thx

 

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

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