Editing XML File

Hi im wondering is there a way to write to an XML file i am using for use information? i can read it but can write to it?

Please try to enable the debug option:

Moreover, reading files requires care when you work with a desktop application… Please read the corresponding topic in the user guide.
For instance, $doc->load( ‘doctor.xml’ ); where is doctor.xml? In which folder? Is it compiled? If yes, then see the documentation and sample about how to make doctor.xml available to PHP in a compiled application.

In the General demo, we’ll add a sample for XML.