ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jowie <>
Subject RE: RegExp help needed!
Date Mon, 07 Dec 2009 12:39:33 GMT

Hi Gilbert,

Thanks very much for taking the time to help me out. Unfortunately I've not
used Xpath before and don't really have time to learn :( but if I give you
an example of my XML, could you perhaps point me in the right direction?
Here is an example:

  <Question ID="531" Subject="L" Category="Punc" Presentation="PT01"
Engine="MC01" Body="test" Media="/bgmain/Image.ashx?ID=12">
      <Answer ID="1457" Valid="false" Position="1"
      <Answer ID="1458" Valid="true" Position="2"
      <Answer ID="1459" Valid="false" Position="3"
      <Answer ID="1460" Valid="false" Position="4"

So from this, I need to:
1. Find any Media attribute, nested or otherwise (e.g. in E4X,
2. Store each of these to download them
3. Replace the values in the XML with local path equivalents, e.g.
4. Go through stored list, download the images and put them in the right
place (I know how to do that bit with copy url)

Many thanks!


Rebhan, Gilbert wrote:
> hit the send button to soon, should be =
> so you would go like that =
> <xmltask source="${local.path}GetAllQuestions.xml">
>  <call path="yourxpathexpression" target="yourdownloadtarget">
>    ...
>   </call>
> </xmltask>
> Regards, Gilbert
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
> For additional commands, e-mail:

View this message in context:
Sent from the Ant - Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message