<?php
$fl=fopen('flwings.xml','w+');
//$myXML = fread($fl,filesize("flwings.xml"));
$doc = domxml_new_xmldoc("1.0");
echo(" new root:: " . $doc);
$root = $doc->add_root("employee");
$head = $root->new_child("firstname", "");
$head->new_child("TITLE", "Hier der Titel");
echo ("the dumpmem:".$doc->dumpmem());
fputs($fl,$doc);
?>
am trying to create a dom xml object using the domxml_new_xmldoc("1.0") function . then i create a root node(employee) and add child nodes to it .
when i try to write the dom object to a "flwings.xml" file opened .it writes the string "object" into the .xml file intead of writing the tree .
thanx in advance