Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: XML Writing New File >Thread Next - Re: XML Writing New File Re: XML Writing New FileTo: NULL Date: 11/14/2007 3:26:00 PM
YoungLady wrote:
> Ok I see that, but I want to create a new file each time. How do I
> programmatically create a new file to save to? This :
> (Server.MapPath("~/exports/export" &
> replace(now.date.tostring, "/", "-") & ".xml"))
> Doesn't exist, yet anyhow, I need to create the actual file on the file
> system first.
Server.MapPath only helps you to construct the right file path, mapping
virtual server directories to local file paths. Then you can pass that
file path to the XmlWriter.Create method as already suggested, that will
create the file if needed or overwrite if the file already exists.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
