Is it possible to do a for-each enumeration on XML nodes matching an xpath query?
For example,
<!-Projects.xml à
<? xml version="1.0">
<projects>
<projectfile filesets="subdirectory1\childproject1\filesets.xml" category="a" />
<projectfile filesets="subdirectory1\childproject2\filesets.xml" category="b" />
<projectfile filesets="subdirectory1\childproject3\filesets.xml" category="c" />
<projectfile filesets="subdirectory2\childproject1\filesets.xml" category="a" />
<projectfile filesets="subdirectory2\childproject2\filesets.xml" category="b" />
<projectfile filesets="subdirectory3\childproject1\filesets.xml" category="c" />
</projects>
I would like to be able to do the following:
<foreach item="XML" in="projects.xml(//[EMAIL PROTECTED] == 'a' or @category == 'c'])" property="filesets">
<do><!-do something with ${filesets} à</do>
</foreach>
This would allow me to create an XML tree representing our source code that could be shared between the GUI and our build script. Currently I have to save a separate CSV file for each group of projects that I want to build together.
Trane eBusiness
QED Team
Phone: 931-905-5386
Fax: 931-648-5901