Tag Archives: XML


SimpleXML is an extension that allows us to easily manipulate and get XML data.

SimpleXML provides an easy way of getting an element’s name, attributes and textual content if you know the XML document’s structure or layout.

SimpleXML turns an XML document into a data structure you can iterate through like a collection of arrays and objects.

  • SimpleXML allows removal of attributes.
  • SimpleXML allows addition of new attributes.
  • SimpleXML allows removal of nodes.
  • SimpleXML allows addition of new nodes.

Modify XML node element value php

XML File – test.xml
<?xml version=”1.0″ encoding=”UTF-8″?>




$xmlFIle    =       “test.xml”;
$xmlString       =  file_get_contents($xmlFIle);
echo $content->Update->Time;
$content->Update->Time = date(“Y-M-d h:i:s”);