Jim Owens
2008-01-25 14:58:05 UTC
Some languages I've used, such as Rexx, make a fuss abour supporting
recursion. I have a small project that does require recursion, but I'd
prefer to write it in AutoIT. Can I do it?
The project involves pulling apart or "bursting" some nested XML
nodes, as in:
<concept>
<concept>
<concept>
</concept>
<concept>
</concept>
</concept>
<concept>
One way I could do it is with this pseudocode:
Do until end of file
If you find a concept
call function PROCESS_CONCEPT
End
Function PROCESS_CONCEPT
Do until end of concept
If you find another concept
/* call this function recursively */
call function PROCESS_CONCEPT
End
End
Save the concept as a file
End
I'm also interested in doing this using XML instead of line
processing. I'm looking into _XMLDOMwrapper. Can it be done that way?
recursion. I have a small project that does require recursion, but I'd
prefer to write it in AutoIT. Can I do it?
The project involves pulling apart or "bursting" some nested XML
nodes, as in:
<concept>
<concept>
<concept>
</concept>
<concept>
</concept>
</concept>
<concept>
One way I could do it is with this pseudocode:
Do until end of file
If you find a concept
call function PROCESS_CONCEPT
End
Function PROCESS_CONCEPT
Do until end of concept
If you find another concept
/* call this function recursively */
call function PROCESS_CONCEPT
End
End
Save the concept as a file
End
I'm also interested in doing this using XML instead of line
processing. I'm looking into _XMLDOMwrapper. Can it be done that way?