Click here to Skip to main content
16,020,261 members

Comments by Kean(cn) (Top 14 by date)

Kean(cn) 11-Nov-10 8:38am View    
Sorry that my enveriment is Visual C#, not Web...
Kean(cn) 11-Nov-10 5:05am View    
Hi Tarun,
I read your method and test some steps, but i dont understand this part:
""""
change the Copy to Output Directory option to Copy Always.
with this the XML file will automatically go to the debug folder and
accessing XML will be much simpler:
to Load:
ie.
XmlDocument xmlDoc=new XmlDocument();
xmlDoc.Load("myXmlFile.Xml");

to Save:
xmlDoc.Save("myXmlFile.xml");
""""
where is the xml file? in Debug folder? if so the user could see it, isnt it?

about this link: http://forums.silverlight.net/forums/p/152118/339496.aspx
i think this question is very close to mine, but my script was stop by the path of the xml file either.

Could you help to specify the step of setting the xml file and its location, or show me a small case? :)
Kean(cn) 8-Nov-10 19:33pm View    
ok, thank you Tarun, but now i'm working on other function, will test this later :)
Kean(cn) 5-Nov-10 2:51am View    
"build action to Content"..so will user could see the xml? I dont want user see/find it in programme file.
But i allow user could export and import this xml file.

Sorry, now my VS version is 2005, cant read the file of link
Kean(cn) 4-Nov-10 6:33am View    
Thanks very much!
And I had tried another way: I add a xml file to the Resource files(embedded), then run the programme, use script to create a new Resource file to overide orignal xml file.. but fail finally.

Seems I should give up the action of modifying Resource file..