Replace a xml node's content with PHP [closed]

joeslady

New Member
\[quote\] Possible Duplicate:
A simple program to CRUD node and node values of xml file \[/quote\]So I have this code, which is located in settings.xml: \[code\]<?xml version="1.0"?><settings> <user id="140"> <about>About me</about> <music>My music</music> <interests>My interests</interests> <font>Arial</font> <theme>Default</theme> </user></settings>\[/code\]and I want to replace the content of about ('About me') with lets say ('This is about me') and then save it to the original file, so after that it will include the following:\[code\]<?xml version="1.0"?><settings> <user id="140"> <about>This is about me</about> <music>My music</music> <interests>My interests</interests> <font>Arial</font> <theme>Default</theme> </user></settings>\[/code\]How is that possible to do using PHP? I've tried some things but they didn't work as expected.
 
Back
Top