ultrus Posted August 20, 2007 Share Posted August 20, 2007 Hello, I'm playing around with PHP5, DOM, and XPath. Is it possible to overwrite elements in an xml document? From my understanding it is not possible as values are "immutable". Is this correct? I assume I would just make a copy of an xml document and save over the original file. Thanks in advance for your input. Quote Link to comment https://forums.phpfreaks.com/topic/65865-solved-php5-dom-xpath-overwrite-elements-or-not/ Share on other sites More sharing options...
Barand Posted August 20, 2007 Share Posted August 20, 2007 xml is just like any other text file in this respect. Read, change, rewrite. Quote Link to comment https://forums.phpfreaks.com/topic/65865-solved-php5-dom-xpath-overwrite-elements-or-not/#findComment-329287 Share on other sites More sharing options...
ultrus Posted August 20, 2007 Author Share Posted August 20, 2007 That makes sense. Thanks much for the pointer. Quote Link to comment https://forums.phpfreaks.com/topic/65865-solved-php5-dom-xpath-overwrite-elements-or-not/#findComment-329298 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.