or download this
# open intermediate file for pass of XML file
open (INTFILEout, '>', $intfile) or
...
### is anything in INFILEout at this point? If so, how
### would the parser know how to put it there?
### stop the code here and cat or type the contents of INFILEout