Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old December 4th, 2006, 04:05 PM
aviator2004
Guest
 
Posts: n/a
Default XML iteration

Hello. I'm an XML newbie and trying to perform some simple iteration.
I am trying to write an Ant task that will perform a series of steps on
different directories. I can't seem to find a way to execute a simple
'for' or 'while' loop in XML. Can anyone help? Thanks in advance.

  #2  
Old December 4th, 2006, 04:05 PM
Johannes Koch
Guest
 
Posts: n/a
Default Re: XML iteration

aviator2004 schrieb:
Quote:
Hello. I'm an XML newbie and trying to perform some simple iteration.
I am trying to write an Ant task that will perform a series of steps on
different directories. I can't seem to find a way to execute a simple
'for' or 'while' loop in XML. Can anyone help? Thanks in advance.
XML itself is not a programming language. However there may be XML-based
languages that have elements that are interpreted as 'for' or 'while' loops.
--
Johannes Koch
In te domine speravi; non confundar in aeternum.
(Te Deum, 4th cent.)
  #3  
Old December 4th, 2006, 05:15 PM
Joseph Kesselman
Guest
 
Posts: n/a
Default Re: XML iteration

Johannes Koch wrote:
Quote:
XML itself is not a programming language. However there may be XML-based
languages that have elements that are interpreted as 'for' or 'while'
loops.
One example of an XML-based programming language would be XSLT. Another
would be the Bean Markup Language (BML).

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
  #4  
Old December 4th, 2006, 05:15 PM
Joseph Kesselman
Guest
 
Posts: n/a
Default Re: XML iteration

The question isn't how to write iteration in XML, but how to write it in
Ant's XML-based language. Check the Ant specs.

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
  #5  
Old December 5th, 2006, 10:45 AM
Andy Dingley
Guest
 
Posts: n/a
Default Re: XML iteration


aviator2004 wrote:
Quote:
I am trying to write an Ant task that will perform a series of steps on
different directories.
If you _must_ iterate in Ant, then there are common Ant extension tasks
(but not core Ant) that will do this. However iteration isn't seen as
an appropriate task for Ant.

Personally I'd not do this in Ant, I'd use a scripting language (e.g.
Python) instead. Try asking in comp.lang.java.softwaretools too.

  #6  
Old December 6th, 2006, 03:25 AM
anuj.raj@gmail.com
Guest
 
Posts: n/a
Default Re: XML iteration


aviator2004 wrote:
Quote:
Hello. I'm an XML newbie and trying to perform some simple iteration.
I am trying to write an Ant task that will perform a series of steps on
different directories. I can't seem to find a way to execute a simple
'for' or 'while' loop in XML. Can anyone help? Thanks in advance.
If you would still like to use here are task that Ant project has been
reluctant to adopt.
For each iteration has been a debate and Ant does not see it as fit for
use in Ant Scripts
as it is pointed in one of the responses. Here is one project that has
for each loops too..

http://antxtras.sourceforge.net/

 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles