Categories > [old] TbsOoo & TinyDoc >

Error (LoadXmlFromDoc method): File not found : tmp/1c727433ec37c8c743ca0353268e3fc1/clm_content.xml...

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: danbobun
Date: 2006-03-19
Time: 18:34

Error (LoadXmlFromDoc method): File not found : tmp/1c727433ec37c8c743ca0353268e3fc1/clm_content.xml.

Hi! I speak english a little. Please can you help me. I have installed the environnement for Open ofiice and Tinybutstrong. 1) I have installed ZIP and UNZIP. 2) I have created a document in swx format under OpenOffice. 3) I have taked the sample for my test but i have somme problem when Tinybutstrong have to generate the XML file from the openoffice document. I have this message :
TinyButStrong Error (LoadXmlFromDoc method): File not found : tmp/1c727433ec37c8c743ca0353268e3fc1/clm_content.xml.

Thanks for your help.
By: danbobun
Date: 2006-03-19
Time: 18:37

Re: Error (LoadXmlFromDoc method): File not found : tmp/1c727433ec37c8c743ca0353268e3fc1/clm_content.xml.

A error in the extension file. it is sxw and not swx. Sorry 
By: danbobun
Date: 2006-03-20
Time: 11:42

Re: Error (LoadXmlFromDoc method): File not found : tmp/1c727433ec37c8c743ca0353268e3fc1/clm_content.xml.

How is created the file "content.xml". The content is created by the tbs00 class or this file have to be created by open office withe "save as" in XML. Thanks for your support
By: Olivier Loynet
Date: 2006-03-21
Time: 14:54

Re: Error (LoadXmlFromDoc method): File not found : tmp/1c727433ec37c8c743ca0353268e3fc1/clm_content.xml.

Bonjour,

Un document OpenOffice est une archive ZIP dans lequel il y a des documents au format XML, comme 'content.xml' et d'autres.

Pour faire un test, renomme ton fichier text.sxw en test.sxw.zip
Ensuite tu ouvres ce fichier avec ton logiciel préféré et tu vas voir qu'à l'intérieur, il y a des documents qui composent le document OpenOffice.

Sous Windows, au lieu de rajouter l'extension '.zip', tu peux faire "ouvrir avec..." et ensuite tu choisis ton programme pour lire le contenu des archives (7-zip, winzip, winrar, ...)
http://www.framasoft.net/article1301.html

Pour ton problème, il ne faut pas changer dans ton code la ligne
$OOo->LoadXmlFromDoc('content.xml');
par
$OOo->LoadXmlFromDoc('clm_content.xml');

car le fichier 'clm_content.xml' n'existe pas dans le document OpenOffice.

Olivier