estoy inntentando armar un formulario para añadir editar y borrar registro del xml
este es el siguiente codigo me lo muestra perno no me lo guarda
Código PHP:
$source = 'content.xml';
// load as string
$xmlstr = file_get_contents($source);
$sitemap = new SimpleXMLElement($xmlstr);
// load as file
$image = $sitemap->addChild('image');
$image->addAttribute('Caption',$_POST["Caption"]);
$image->addChild('comentarios','http://php-design-patterns.com');
header('Content-type: text/xml');
echo $sitemap->asXML();