Hi all,

How do I update a simple XML file using PHP??

XML:

<menu>
  <link><a href="#">Home</a></link>
  <link><a href="#">Contact</a></link>
</menu>

Thanks.

Kevin.

    Have you looked at PHP's XML extension?
    It can parse an XML file into an array. You should then be able to write the array back to the file after editing it.

      Write a Reply...