/n with #foreach in xmlpreprocessor

Topics: Tips and Tricks
Jun 22, 2010 at 6:25 AM
Edited Jun 22, 2010 at 6:27 AM

Hi,

just for information. I asked in the xmlpreprocess-forum about using the new #foreach element together with the /n option to achive constructs like this (http://xmlpreprocess.codeplex.com/Thread/View.aspx?ThreadId=216493):

<root>
<element>${simple}</element>
<!-- #foreach (multiple) -->
<another>${multiple}</another>
<!-- #endforeach -->
</root>
Background: I want to generate multiple receive locations based on a list of databasenames and I' not using the <!-- ... --> syntax.
Lorenh's idea was to run the preprocessor twice. First to resolve the #foreach, next to resolve the rest.

Eljakim