1

Currently I'am working on a ASP.NET project and I have written a C# code to write/modify my XML document, which I'am using to structure my portal. I now have to migrate my project to SharePoint, where I'am able to read my xml document but i don't know how to modify the same. Is there any way i can do it with the help of JavaScript.? I have read many blogs, but wasn't able to get any satisfactory solution. My colleague told me that he modified a database using SharePoint using JavaScript so there would be a way to do the same with XML.

Any suggestion would be appreciated.

4
  • What are you modifying, and what is it that you can't do? Give details about your specific problem. Commented Jun 6, 2013 at 12:12
  • JavaScript can not modify anything on the server by itself. At some point, you'll still have to call some server side method which will modify the file. Commented Jun 6, 2013 at 12:17
  • @nunespascal -- I want to modify xml file(delete and add some new nodes). I am able to read the xml file using AJAX but i can't write it with AJAX.
    – madhur
    Commented Jun 6, 2013 at 12:28
  • @AlexFilipovici -- Is there any JavaScript Library that provides direct funtions to modify the xml structure by calling the server side methods.
    – madhur
    Commented Jun 6, 2013 at 12:31

1 Answer 1

0

What you are looking for is the SharePoint JavaScript object model. This is a sharepoint library that allows you to manipulate sharepoint objects using javascript.

SharePoint does allow you to share documents too, so you could upload an xml document to a SharePoint library. But if you are building a SharePoint site, there are probably a lot better methods to customize it, like a SharePoint list, than using an xml file in a SharePoint document library.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.