Forum Statistics

  • Forum Members: 4,502
  • Total Threads: 3,657
  • Total Posts: 1
There are 1 users currently browsing forums.

Partner Sites

Reply
Old 04-16-2009, 09:47 AM   #1 (permalink)
 
Status: Account Temporarily Suspended
Join Date: Mar 2009
Posts: 52

Rep Power: 0 kuma.lk is on a distinguished road



Default XML template value replacement using PHP?

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?
__________________________________________________ __________________________
Video Recipes
pebble tile backsplash pattern
kuma.lk is offline Add Infraction for kuma.lk   Reply With Quote


Reply

Bookmarks

Tags
None


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may post new threads
You may post replies
You may post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Search Engine Optimization by vBSEO 3.5.0 RC2