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 FileTo: NULL Date: 11/14/2007 4:54:00 PM
YoungLady wrote:
> I get what server.mappath does, My problem is creating the xml file in the
> file system. I need to everytime this function runs, create a new xml file to
> store in the file system(not overwriting previous files). How do I
> programmatically create the actual file. I know how to write the xml to an
> already created xml file. Doing something write
> xmlwriter.create(server.mappath("export101.xml")) comes back with the error
> can't find virtual path, which is of course because export101.xml doesn't
> exist yet. How can i create the export101.xml to write to?
To my knowledge
XmlWriter.Create(Server.MapPath("nonexistingfile.xml"))
should work to create that file. You might want to ask in an ASP.NET
group if you think there are problems with your use of Server.MapPath.
--
Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
