Jump to content

Editing XML


Guest FirefoxRocks
 Share

Recommended Posts

Guest FirefoxRocks

I was wondering if I could develop a program using JavaScript that can edit an XML file. This is because there is no server, only a browser which is used to display the XML file.The data needs to be stored in the XML file permanently, not just in memory. This may be an issue with browser security, but I hope it is possible.If there is a way to do this, it would be really helpful. Thanks.

Link to comment
Share on other sites

If you are developing this for yourself, of if you are building this for an intranet where all the users have IE, you can use ActiveX's FileSystemObject to edit your XML files.On the other hand, if you want the world to be able to use this (or you want to use a better browser than IE), you'll have to do all the IO on a web server.

Link to comment
Share on other sites

Well the organization doesn't have a web server. Any way I can edit the files on the local computer without opening the XML file in Notepad?
Open it in any other text or GUI editor :) .That, or create an ActiveX control that would do it (essentially - create a new Windows XML editor).BTW, Infopath can create forms based on a schema or an inputted XML file. If you don't have a schema, and don't want to create one, and the XML file can't descibe all possibilities, you could create a blank form, and forge the XML model from there. Just be sure to keep the form field names the same as the names of the XML element you want to generate.
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...