Tema: xml con php
Ver Mensaje Individual
  #2 (permalink)  
Antiguo 08/06/2009, 02:47
Avatar de danielrivas
danielrivas
 
Fecha de Ingreso: noviembre-2007
Ubicación: Preprocessing
Mensajes: 275
Antigüedad: 16 años, 5 meses
Puntos: 6
Respuesta: xml con php

simplemente coges los datos que quieres, los almacenas en una variable $buffer que empezaría asi:

Código PHP:
$buffer='<?xml version="1.0" encoding="utf-8"?>';

luego generas el xml de esta forma:

Código PHP:
$name_file="tufichero.xml";
       
$file=fopen($name_file,"w+");
       
fwrite ($file,$buffer);
       
fclose($file);