", "]]>", " ");
// use the ever-so-handy php replace string function to replace
// every instance of a mangled tag with a corrected version
$xmlString = str_replace($oldChars, $newChars, $HTTP_RAW_POST_DATA);
// hopefully by here - the mangled tags will be properly reformatted and
// the xml can saved back to the server correctly
// the only thing i don't know how to do is to preserve the visual
// spacing structure so if you open the xml in dreamweaver or text
// editor, it still retains it's original well laid out form.
if(!fwrite($file, $xmlString)){
print "";
}else{
print "";
}
fclose($file);
?>