Forcing a change of line in xml
Posted: Wed Apr 16, 2008 5:29 am
Good morning
I have another question
for addchild in xml i have this code
$xml = simplexml_load_file("noticias.xml");
echo $xml->principal->no ;
$filho = $xml->addChild('no'),"\n";
$filho->addChild('marca','vazio');
$filho->addChild('titulo',$_POST['introducao_noticia']);
$filho->addChild('textopequeno',$_POST['texto_pequeno']);
$filho->addChild('textogrande',$_POST['texto_principal']);
$filho->addChild('link',$imagem_nome);
echo $xml->asXML("noticias.xml");
{
header("Location:visualizar_noticias.php");
}
But i need forcing the change line, this way he's write in same line....
Someone help's me ?
Thank's
I have another question
for addchild in xml i have this code
$xml = simplexml_load_file("noticias.xml");
echo $xml->principal->no ;
$filho = $xml->addChild('no'),"\n";
$filho->addChild('marca','vazio');
$filho->addChild('titulo',$_POST['introducao_noticia']);
$filho->addChild('textopequeno',$_POST['texto_pequeno']);
$filho->addChild('textogrande',$_POST['texto_principal']);
$filho->addChild('link',$imagem_nome);
echo $xml->asXML("noticias.xml");
{
header("Location:visualizar_noticias.php");
}
But i need forcing the change line, this way he's write in same line....
Someone help's me ?
Thank's