eger
04-14-2009, 12:00 PM
I know what I want to do.. but I am having trouble getting started with it. So here it is.
I want to provide an XML template such as:
<tree>
<value1>$VALUE1$</value1>
<newtree>
<value2>$VALUE2$</value2>
</newtree>
</tree>
Then when given the XML:
<tree>
<value1>150</value1>
<newtree>
<value2>20</value2>
</newtree>
</tree>
I want to parse the values in variables (such as $value1 and $value2).
I have figured out how to get the XML into a PHP array. But this is not quite the result I am looking for.
Any ideas how to approach this?
I want to provide an XML template such as:
<tree>
<value1>$VALUE1$</value1>
<newtree>
<value2>$VALUE2$</value2>
</newtree>
</tree>
Then when given the XML:
<tree>
<value1>150</value1>
<newtree>
<value2>20</value2>
</newtree>
</tree>
I want to parse the values in variables (such as $value1 and $value2).
I have figured out how to get the XML into a PHP array. But this is not quite the result I am looking for.
Any ideas how to approach this?
