Simply all i wish to do at this point is take a xml file that was generated by word and duplicate it. At a later date i will manipulate the xml but for now i cannot even open and save the file!
The XML comes out corrupt is the problem and crashes word upon opening.
The saved XML is valid and scanning it i cannot find the issue.
Is there something im missing about php xml dom?
Code: Select all
//Altering document XML file
$xmlDoc = new DOMDocument();
$xmlDoc->load( 'quotation/'.$_SESSION['account'].'/introduction.xml');
$xmlDoc->preserveWhiteSpace = false;
$xmlDoc->save('quotation/'.$_SESSION['account'].'/introduction_copy.xml');