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. Link to comment https://forums.phpfreaks.com/topic/93983-editing-xml-file-in-wysiwig/ 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. Link to comment https://forums.phpfreaks.com/topic/93983-editing-xml-file-in-wysiwig/#findComment-481516 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!!?? Link to comment https://forums.phpfreaks.com/topic/93983-editing-xml-file-in-wysiwig/#findComment-481518 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. Link to comment https://forums.phpfreaks.com/topic/93983-editing-xml-file-in-wysiwig/#findComment-481521 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. Link to comment https://forums.phpfreaks.com/topic/93983-editing-xml-file-in-wysiwig/#findComment-481569 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 Link to comment https://forums.phpfreaks.com/topic/93983-editing-xml-file-in-wysiwig/#findComment-481575 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.