Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / JScript / November 2003

Tip: Looking for answers? Try searching our database.

save xml with jscript

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
George Kosmidis - 20 Nov 2003 12:03 GMT
hi,
when i try to save an xml i get the following message :
Permission denied.
in a simple script like that:
var doc = new ActiveXObject("msxml2.DOMDocument.4.0");
doc.async = false;
doc.resolveExternals = false;
doc.validateOnParse = false;

// Load an XML file into the DOM instance.
doc.loadXML
 (
     "<?xml version='1.0'?>\n"
    +"<doc title='test'>\n"
    +"  <page num='1'>\n"
    +"    <para title='Saved at last'>\n"
    +"       This XML data is finally saved.\n"
    +"    </para>\n"
    +"  </page>\n"
    +"  <page num='2'>\n"
    +"    <para>\n"
    +"       This page is intentionally left blank.\n"
    +"    </para>\n"
    +"  </page>\n"
    +"</doc>\n"
 );

// Save the dom to a file.
doc.save("saved.xml");
name - 24 Nov 2003 09:14 GMT
It is a matter of time.

The final days for this crap will arrive.

> hi,
> when i try to save an xml i get the following message :
[quoted text clipped - 25 lines]
> // Save the dom to a file.
> doc.save("saved.xml");
Joe Fawcett - 24 Nov 2003 09:46 GMT
> hi,
> when i try to save an xml i get the following message :
[quoted text clipped - 25 lines]
> // Save the dom to a file.
> doc.save("saved.xml");
You won't be able to save from a web page to local drive unless security
settings are very low. What context are you running this in?

Signature

Joe (MVP - xml)


Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.