Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Re: XMLDOM.save NOT saving? >Thread Next - Re: XMLDOM.save NOT saving? Re: XMLDOM.save NOT saving?To: NULL Date: 1/4/2005 8:53:00 AM Actually, I had it working on the client side using the code and then
displaying the results in the web browser. That tells me it finds the file.
Also, I editing some values in the XML file and the changes diplayed
correctly.
I only included the code here that represeneted the last step which was to
make the code serverside and save the doc.
Any advantage in using...
set xmldoc = Server.CreateObject("Msxml2.DOMDocument.3.0")
j
"Han" wrote:
> Your xml might be not loaded. For debugging, replace
>
> > xmlDoc.load("test.xml")
>
> with
>
> > xmlDoc.loadXml("<a/>")
>
> Optionally, you may want server.mapPath() for the xml file path.
>
> Additionally, saving xml file in the server is bad idea. Use databases
> instead.
>
> --
> Pohwan Han. Seoul. Have a nice day.
> "Jeff" <Jeff@d...> wrote in message
> news:36387C6E-B0E2-467B-AB60-38A65948D97B@m......
> > ASP on the serverside will create the file when saving but the file is 0
> > bytes.
> > I've tried several things including perms. Even went so far as to make
> > EVERYONE full access. (just for testing)
> > Still doesn't work.
> >
> > Here's what I'm trying.
> >
> > <%
> > set xmlDoc=Server.CreateObject("Microsoft.XMLDOM")
> > xmlDoc.async="false"
> > xmlDoc.load("test.xml")
> > xmlDoc.save("c:\test.xml")
> > %>
> >
> > Again, c:\test.xml is created but 0btyes.
> >
> > I'm a newbie so go easy eh?
> > thanks,
> > j
> >
> >
> >
>
>
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
