I edited this little bit of code to test to see why writing to an XML file using DOM/XML in PHP is not working and I get no errors nor any sort of result (like an xml file). I checked and the directory is CHMOD 777 if that matters.
Any ideas would be appreciated.
Any ideas would be appreciated.
Code:
<?php
$xmlDocument = domxml_new_doc('1.0');
$documentElement = $xmlDocument->create_element('forest');
$xmlDocument->append_child($documentElement);
$tree = $xmlDocument->create_element('tree');
$name = $xmlDocument->create_element('name');
$name->append_child($xmlDocument->create_text_node('Oak'));
$tree->append_child($name);
$documentElement->append_child($tree);
$xmlDocument->dump_file('test2005.xml', FALSE, TRUE);
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[URL unfurl="true"]http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">[/URL]
<html xmlns="[URL unfurl="true"]http://www.w3.org/1999/xhtml">[/URL]
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<body>
<p>
<a href="test2005.xml">test XML file</a>
</p>
</body>
</html>