xmlwrite to multiple output files ?

Post any question you may have in regards to GoAnywhere Director and let our talented support staff and other users assist you.

xmlwrite to multiple output files ?

Postby DaneRI » Wed Jun 29, 2011 3:11 pm

hi,

Is it possible to create multiple files with a dynamically created filename in an xmlwrite using "for each" on an input file from a query..
DaneRI
 
Posts: 3
Joined: Tue Jun 28, 2011 2:16 pm

Re: xmlwrite to multiple output files ?

Postby Support_Julie » Tue Jul 05, 2011 4:04 pm

If you're asking if it's possible to create a generic project to write .xml files on the fly, you can't do that.

If, on the other hand, you have the XML format created, and you're reading a database file and parsing each record into a separate .xml file then giving each file a name based on something in the record, that you can do.
Julie
Software Support
Linoma Software
Support_Julie
Support Specialist
 
Posts: 78
Joined: Thu Mar 05, 2009 3:49 pm
Location: Ashland, NE USA

Re: xmlwrite to multiple output files ?

Postby DaneRI » Wed Jul 06, 2011 2:17 pm

Ok. so for example. A query runs containing field a, b, and c within each of 3 records. b's value is 1 for the first record, 2 for the second and 3 for the third. I want to be able to create 3 dynamic filenames in an xmlwrite (1.xml, 2.xml, 3.xml). I am using "foreach" logic. I am looking for the syntax..

thanks,

DP
DaneRI
 
Posts: 3
Joined: Tue Jun 28, 2011 2:16 pm

Re: xmlwrite to multiple output files ?

Postby DaneRI » Thu Jul 07, 2011 9:45 am

I got it...I used a set variable task, then used the variable in the filename.
DaneRI
 
Posts: 3
Joined: Tue Jun 28, 2011 2:16 pm


Return to Community Forum

Who is online

Users browsing this forum: No registered users and 1 guest

cron