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]
|