The original problem you stated was you don't want to open InfoPath and you
want to store an empty xml file in another document library (possibly in a
different site or on a different server). Maybe if you explain the context a
little it might shed a little more light on what/why you're trying to do.
When you publish the template the Sharepoint the xsn file is located in a
folder under the form library with the name "template.xsn" as follows:
<formlibrary>/forms/template.xsn. When you "fill out the form" the xml
document is generated by InfoPath using the schema and the transformations in
the template. So you either have to open the form in InfoPath and then
automate the saving and closing of the form or do something along the lines
of what I suggested before. If you have any logic inside the infopath form
that needs to be run (such as in the onload) then you must open the template
using InfoPath.
You can open the InfoPath template to fill out the form without having to go
the form library. Just add a hyperlink to your webpart/webform with the href
pointing to the complete URL of the template. (don't forget to add
/forms/template.xsn to the end of the form library url). However, this still
opens InfoPath.
If you know the location of the document library and it is unchanging you
can set the save location in code in the form template. Look at
thisXDocument.UI.SetSaveAsDialogLocation()
The following MSFT article may help you out a little:
http://msdn.microsoft.com/library/d...dc_ip2003_ta/html/odc_InfoPath_extending_save