<p>does anybody know how to refresh the Internet Explorer (like by pressingthe F5 key) but using some "backdoor" like PostMessage or SendMessage? The internet Explorer Window is not active so I can't use the keyboard.</p>

<p>Thanks</p>

<p>(Language doesnt matter)</p>

If you can identify what is to be replaced through a regular expression, I recommend using the optional task
replaceregexp
. Here's the doc:
http://ant.apache.org/manual/Tasks/replaceregexp.html
You can call it twice, one for the start tag and other for the end tag.
The regexp for replacing your
can be a bit cumbersome, since you say you do not want to replace all
tags, but I think this is the easiest way.
Another option would be to create a custom ant task to do what you want.