i cant get it to work.
i tried this but it dosent work come up with a xml error.
original code
$doc = new_xmldoc('1.0');
$PropertyList = $doc->add_root("propertyList");
$PropertyList->set_attribute("date", "$tday");
$PropertyList->set_attribute("username", "nuvo");
$PropertyList->set_attribute("password", "xml4a11");
$fp = @fopen('xml/members.xml','w');
if(!$fp) {
die('Error cannot create XML file');
}
fwrite($fp,$doc->dumpmem());
fclose($fp);
modified code.
$doc = new_xmldoc('1.0');
$PropertyList = $doc->add_root("propertyList");
$PropertyList->set_attribute("date", "$tday");
$PropertyList->set_attribute("username", "nuvo");
$PropertyList->set_attribute("password", "xml4a11");
$fp = @fopen('xml/members.xml','w');
if(!$fp) {
die('Error cannot create XML file');
}
fwrite($fp,'<?xml version="1.0" standalone="no"?>
<!DOCTYPE propertyList SYSTEM "http://mywebsite.au/propertyList.dtd">
');
fclose($fp);
please help.