Categories > TinyButStrong general >

Replaceing xml: repair file?!

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: SanderK
Date: 2013-07-03
Time: 16:55

Replaceing xml: repair file?!

Hi Skrol,

Another question!

When I replace a xml (the shared strings file) with
$TBS->Plugin(OPENTBS_REPLACEFILE, $Name, $Data, $DataType=OPENTBS_STRING, $Compress=true);

(and also when I remove the xml and add it again), the output file is damaged. It can open in excel but I have to repair it first.

I only changed one value in the xml file, and left all the coding intact.

Do you know how this comes? Do I have to change other values too when I edit a value in shared strings? Or does TBS automatically change other thing in the file (and how do I turn it off then..)?

I know it is a bit off topic maybe, but since you're such an expert... ;)

SK
By: SanderK
Date: 2013-07-03
Time: 21:33

Re: Replaceing xml: repair file?!

I found a workaround which works wonderfull! The TBSZip class!

Is it also possible to open TBSZip from a file handle? How does that work?
By: Skrol29
Date: 2013-07-04
Time: 00:02

Re: Replaceing xml: repair file?!

> Is it also possible to open TBSZip from a file handle?

Yes, simply use TbsZip 2.14.
By: SanderK
Date: 2013-07-04
Time: 11:37

Re: Replaceing xml: repair file?!

GREAT!