allex01 Posted March 2, 2008 Share Posted March 2, 2008 How can i make a xml file content show up in a WYSIWYG editor where i can simply edit the file and click save. I just need a simple editor. Quote Link to comment Share on other sites More sharing options...
trq Posted March 2, 2008 Share Posted March 2, 2008 Why would you need a WYSIWYG editor for an XML file? Simply open the file with fopen, place it into a <textarea> edit the file and write it back again using fwrite. Quote Link to comment Share on other sites More sharing options...
Sulman Posted March 2, 2008 Share Posted March 2, 2008 If you want to simply edit the file by hand then open it in notepad or similar. Is that what you meant!!?? Quote Link to comment Share on other sites More sharing options...
allex01 Posted March 2, 2008 Author Share Posted March 2, 2008 I want to give my customer a CMS capability where he can edit the content of the file via the browser. The content would should up in an editor where costumer can make simple changes and hit the save button. I need some guidance on how to do this. Quote Link to comment Share on other sites More sharing options...
trq Posted March 2, 2008 Share Posted March 2, 2008 I just told you how to do it. Quote Link to comment Share on other sites More sharing options...
Sulman Posted March 2, 2008 Share Posted March 2, 2008 Wouldn't it be better to give the user a form to submit new values then you handle the xml writing in your scripts. Then you can clean their input etc. Letting a user directly edit the xml is a bad idea. They'll put characters in that will break it etc. If you're using php 5 then look at simplexml: http://uk2.php.net/simplexml Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.