thanks for your response,...i m publishing the page from WYSIWYG HTML Editor from browser,& after reloading the same page using the code:
- $newsedit=file_get_contents('http://localhost/nap/newsupdates/'.$newseditid.'.html');
(i also change the path corresponding to at the time of hosting and there is no problem related with path)
in to the editor the text mode displays my page content and CODE VIEW displays its html codes but the above XML prolog
'<?xml version="1.0" standalone="yes"?>' is not displaying inside text area of editor,(but the page contains XML Prolog which is auto generated at first publishing,my code is :
- $doc = new DOMDocument();
-
$doc->loadHTML($news);
-
//echo $doc->saveHTML();
-
-
$ext='.html';
-
$page_name=$name.$ext;
-
$path=$page_name;
-
-
$doc->save($path)
-
)
error : Parse error: syntax error, unexpected T_STRING in /newsupdates/113.html on line 1
...how can i omit the prolog..i m using openWYSIWYG Html Editor,is it possible to edit(omit) the prolog inside the editor?