by ampakine on Sat Jul 02, 2011 5:54 pm
([msg=59322]see PHP - Editing XML documents with simplexml[/msg])
I've been playing around with the simplexml functions in PHP and I'm trying to get the addChild() function to add a new child element to an existing XML document and although I can echo the contents of this new element after I create it, the actual XML document doesn't get modified. Does the addChild() function not actually write to the XML file? In other words do I have to write the changes to the file myself with fwrite?