Hi Brian,

I've created a patch for RFE 1192359.
This patch changes the <call> element to allow the following construction:
<xmltask source="test.xml">
<call path="/modules/module">
<param name="modName" path="@name"/>
<param name="modOwner" path="@owner" default="n/a"/>
<sequential>
<echo>Module Name: @{modName}</echo>
<echo>Module Owner: @{modOwner}</echo>
</sequential>
</call>
</xmltask>

If you have the following XML:

<modules>
<module name="module1" owner="owner1" />
<module name="module2" />
<module name="module3" owner="owner3" />
</modules>

the result of calling the xmltask in the example above will be:

Module Name: module1
Module Owner: owner1
Module Name: module2
Module Owner: n/a
Module Name: module3
Module Owner: owner3

Could you please review this patch, because I really need such functionality and I'd prefer to work with official releases instead of patching it myself.
http://sourceforge.net/tracker/index.php?func=detail&aid=1192359&group_id=27398&atid=390338

Thanks,
Maarten

Reply via email to