PDA

View Full Version : Dynamic Attribute?


cid23
12-08-2006, 05:20 AM
Ok, I have a class which duplicate a series of action based on xml data.(using datapath)
<classname datapath="external xml file">

now inside the class i can render the attributes values(per node) of my external file <text datapath="@attribute variable">

problem, i have a static <attribute name="name" value="some"> variable within that class. how do i make it dynamic? and put the value of "@attribute variable" to make it dynamic.

Please recommend other approach.

Thanks in advance,

cid

cid23
12-08-2006, 05:40 AM
AH! got it! $path{'@attribute'};