Unable to open xls (SpreadsheetML, XML Spreadsheet 2003, or XMLSS) on LibreOffice v5.4.4.2 - xls

I have does the installation of LibreOffice Version: 5.4.4.2 (x64) Build ID: 2524958677847fb3bb44820e40380acbe820f960 on my organization and they can open all documents except one, a .xls file (SpreadsheetML, XML Spreadsheet 2003, or XMLSS) with the these headers:
<?xml version="1.0" encoding="ISO-8859-1"?>
<?mso-application progid="Excel.Sheet"?>
<Workbook xmlns="urn:schemas-microsoft-com:office:Spreadsheet"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:x="urn:schemas-microsoft-com:office:excel"
xmlns:ss="urn:schemas-microsoft-com:office:Spreadsheet"
xmlns:html="http://www.w3.org/TR/REC-html40">
<DocumentProperties xmlns="urn:schemas-microsoft-com:office:office">
I had googling that for more than two days and i can´t find a solution for that, that it´s a very important file for the organization. Any idea about the solution?
Thanks in advance.

Related

Are there any docx repair tools that give a meaningful error message?

I am struggling to find the cause of a corrupt docx file.
It seems that there are millions tools out there for repairing corrupted files - I've tried 5 that all repaired beautifully, but none of them gave any indication of the error origin.
Does anybody know of one that does?
Open source would be a bonus.
Thanks.
UPDATE:
I tried using the Open XML SDK 2.0 Productivity Tool as recommended by frankpl. It looked promising, but it refused to open my corrupt file either standalone or to compare with another.
I found a difference between the [Content_Types].xml part of the file, but on closer It's just the order that's different - I presume this wouldn't account for corruption?
In the valid (repaired by Word) file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
<Default Extension="xml" ContentType="application/xml"/>
<Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>
<Override PartName="/word/numbering.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml"/>
<Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/>
<Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>
<Override PartName="/word/stylesWithEffects.xml" ContentType="application/vnd.ms-word.stylesWithEffects+xml"/>
<Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/>
<Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>
<Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/>
<Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"/>
<Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>
</Types>
And in the corrupt file:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Types xmlns="http://schemas.openxmlformats.org/package/2006/content-types">
<Default Extension="xml" ContentType="application/xml"/>
<Default Extension="rels" ContentType="application/vnd.openxmlformats-package.relationships+xml"/>
<Override PartName="/word/document.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml"/>
<Override PartName="/word/numbering.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml"/>
<Override PartName="/word/styles.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml"/>
<Override PartName="/word/stylesWithEffects.xml" ContentType="application/vnd.ms-word.stylesWithEffects+xml"/>
<Override PartName="/word/settings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml"/>
<Override PartName="/word/webSettings.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml"/>
<Override PartName="/word/fontTable.xml" ContentType="application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml"/>
<Override PartName="/word/theme/theme1.xml" ContentType="application/vnd.openxmlformats-officedocument.theme+xml"/>
<Override PartName="/docProps/core.xml" ContentType="application/vnd.openxmlformats-package.core-properties+xml"/>
<Override PartName="/docProps/app.xml" ContentType="application/vnd.openxmlformats-officedocument.extended-properties+xml"/>
</Types>
Here's a list of DOCX repair tools that are free:
http://www.docxrepairtoolbox.com/
http://sourceforge.net/projects/damageddocx2txt/
http://sourceforge.net/projects/quickwordrecovr/
http://download.cnet.com/SysInfoTools-Docx-Repair/3000-2248_4-75330500.html
Not a docx repair tool, but the Open XML SDK 2.0 for Microsoft Office contains a tool named "Open XML SDK 2.0 Productivity Tool for Microsoft Office" that you can use to compare two docx files (like the corrupt and the working one).
Old question I know, but just to say for anyone with similar problems.
The above content files wont be source of issue. (order isn't an issue it's just what word does on repair - renumbers ids and reorders)
Something that can cause corruption is simply having extra files in the zip that doesn't belong there.
Most of the time when it throws it's hand up in air and doesn't give you a hint, it's the structural metadata that has gone wrong.
By that I mean, not an invalid pointer to a relationship id in the document.xml (for example), but an invalid relationship file itself. For example, pointing to a content type in document.xml.rels that isn't in [Content_Types].xml.
However, when word repairs everything it renumbers all it's ids (and reorders) so compare tools are difficult.
Check the list of files is same, concentrate on things such as [Content_Types].xml and document.xml.rels (and other rels files), and good luck!
Many years late, but you can create your own error checker using DocumentFormat.OpenXml.Validation: https://msdn.microsoft.com/en-us/library/office/bb497334.aspx

Can Adobe's filevault tool (VLT) be configured to ignore files?

If it can, where would this be configured?
From the documentation, all mention of ignoring files is about excluding .vlt from SVN commits, but we're facing the opposite issue — we'd like to exclude files that are on the file system from VLT commits — e.g. .DS_Store, *.iml, etc.
VLT creates a .vault folder in the user's home directory, similar to .subversion, but this just seems to hold authentication details.
The programme also doesn't seem to allow an ignore property to be set via propset — I tried this with a similar syntax to SVN (vlt propset -R vlt:ignore .DS_Store *) and received a fairly useless, (& overly optimistic for future improvement) error message:
Generic properies not supported, yet
Any pointers would be great!
Just add the ignores to your META-INF/vault/settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<vault version="1.0">
<ignore name=".svn"/>
</vault>
sure.
In the vault config directory, where the filter.xml is, create a file settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<vault version="1.0">
<ignore name=".svn"/>
<ignore name=".DS_Store"/>
</vault>
If you wanna solve it in a more general matter you can use a user-config similar to SVN in your home directory.
$ cat ~/.vault/settings.xml
<?xml version="1.0" encoding="UTF-8"?>
<vault version="1.0">
<ignore name=".svn"/>
<ignore name="._*"/>
<ignore name="release.txt"/>
<ignore name=".git"/>
<ignore name=".gitignore"/>
<ignore name="*/generated(/?)*"/>
</vault>
Where .svn, .git and so on is ignored as well as generated AEM files (s.a. less to css).
just go to the src/main/content folder where jcr_root folder lie.
You will see the folder "META-INF" and go in to META-INF/vault folder.
open the setting.xml file. You will see the following content.
<?xml version="1.0" encoding="UTF-8"?>
<vault version="1.0">
<ignore name=".svn"/>
<ignore name="._*"/>
<ignore name="release.txt"/>
<ignore name=".git"/>
<ignore name=".DS_Store"/>
<ignore name=".gitignore"/>
<ignore name="*/generated(/?)*"/>
</vault>
You can add the ignoring files/folder here. I have added the Eclipes project folder .DS_Store.

Identifying messages in a Qt Linguist translation file (TS file)

I hope this is the right forum to ask this question. If it is not, please redirect me to a more suitable forum.
I am trying to understand the format of a Qt Linguist TS file. I have modified a file and when I try to open it I get the error message "Duplicate messages found in ...". The file contains indeed one context with two messages that have
the same source
a location with the same file name but different line numbers
different translation
Here is the source code of a minimal file that gives this error:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="es">
<context>
<name>MyContext</name>
<message>
<location filename="../../../../../MyFile.cpp" line="605"/>
<source>Delete</source>
<translatorcomment>Menu option</translatorcomment>
<translation type="unfinished">&Borrar</translation>
</message>
<message>
<location filename="../../../../../MyFile.cpp" line="1572"/>
<source>Delete</source>
<translation>Eliminar</translation>
</message>
</context>
</TS>
To my knowledge, each message is identified by context, source and location so this should not be a problem because the line numbers are different. Notice also that you cannot combine the two message elements into one, because they contain different translation texts.
So it is not clear to me what can cause the error message. I am using Qt version 4.6.2.
I have looked in the following documents: Qt Linguist Manual: Translator, Qt Linguist Manual: Programmers, Linguist TS file format, but in none of them I have found the information I am looking for, namely how each message is identified and what could cause the error message in Qt Linguist.
If you do not know the answer to this question, a link to further, more detailed information on the TS format would also be helpful.
UPDATE
I have found out that by using the optional tag TS/context/message/comment it is possible to
have different translation texts for the same context/message/source, e.g.
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="es">
<context>
<name>MyContext</name>
<message>
<location filename="../../../../../MyFile.cpp" line="605"/>
<source>Delete</source>
<comment>Comment 1</comment>
<translatorcomment>Menu option</translatorcomment>
<translation type="unfinished">&Borrar</translation>
</message>
<message>
<location filename="../../../../../MyFile.cpp" line="1572"/>
<source>Delete</source>
<comment>Comment 2</comment>
<translation>Eliminar</translation>
</message>
</context>
</TS>
The above file can be opened without errors.
This seems to solve my problem but it would be good to have some precise documentation about this format.
The error message reported by Qt linguist is meaningfull.
Try this modified version of your TS file:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="es">
<context>
<name>MyContext</name>
<message>
<location filename="../../../../../MyFile.cpp" line="605"/>
<source>Delete</source>
<translatorcomment>Menu option</translatorcomment>
<translation type="unfinished">&Borrar</translation>
</message>
</context>
<context>
<name>MyOtherContext</name>
<message>
<location filename="../../../../../MyFile.cpp" line="1572"/>
<source>Delete</source>
<translation>Eliminar</translation>
</message>
</context>
</TS>
Duplicates are identified by context (i.e. MyContext vs. MyOtherContext) and source (Delete).
Edit:
I have scrutinized Qt Linguist's source code. As far as I can tell it never make use of ts.dtd for validation purpose, everything is hardcoded (See the TSReader class in ts.cpp).
The moral is: you can do every manipulation you want if and only if the resulting ts file can be loaded again by Qt Linguist and accepted by lupdate (to resync the application).
The complete lookup key for a translation is
Context + source string and, when present, disambiguation string
see http://qt-project.org/doc/qt-4.8/i18n-source-translation.html#disambiguation
The disambiguation string is stored in the comment field since this was also, in older Qt versions, the way to insert a developer comment (it is still recognized as such by Qt Linguist and so is the new comment (extracomment in the .ts file see http://qt-project.org/doc/qt-4.8/i18n-source-translation.html#translator-comments)).
So, as you noticed, you can have two strings with the same context and source string as long as they have different disambiguation strings (or one of them has one and the other does not).

Sharepoint 2010 - Feature(Module) Cannot copy sample.txt to "Shared Documents" on web

I am making a feature in sharepoint 2010 foundation and the procedure is below:
1- I created a empty c# project in visual studio and made 3 files in their (feature.xml, elements.xml and sample.txt) (it has been made to copy the sample.txt file to "Shared Documents library"
2- I copied the three files in the 14 Hive features folder in my new folder named "demofeature"
3- I ran command to install the feature which is (stsadm -o installfeature -name demofeature) it ran successfully
4- I am now able to see my feature in (site settings > manage features page) the site/web and I activated it from there
5- I went to shared documents but I cannot see my file there i.e: sample.txt and also I didnt see any errors during the deployment.
Please let me know, what can be wrong here?
I am pasting my code below :
feature.xml
<?xml version="1.0" encoding="utf-8" ?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/"
Id="2BAC8ED9-3CFF-4922-9E4F-81F8AD9500F9"
Scope="Web"
Title="RHM test feature" >
<ElementManifests>
<ElementFile Location="elements.xml"/>
<ElementFile Location="Sample.txt"/>
</ElementManifests>
</Feature>
elements.xml
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/" >
<Module Name="Deploy" Url="Shared Documents" Path="Shared Documents" >
<File Url="Sample.txt" Type="GhostableInLibrary" Path="Sample.txt">
</File>
</Module>
</Elements>
and a sample.txt file which is placed in the new feature folder.
Thanks
Raj
I would highly suggest using Visual Studio 2010 for creating your features and modules. Otherwise, it is only a high priced text editor. From the menu, select Project > Add New Item, then select Module from the SharePoint 2010 templates. This would generate all of the XML for you correctly.
To your question, try the following XML:
<?xml version="1.0" encoding="utf-8" ?>
<Feature xmlns="http://schemas.microsoft.com/sharepoint/"
Id="2BAC8ED9-3CFF-4922-9E4F-81F8AD9500F9"
Scope="Web"
Title="RHM test feature" >
<ElementManifests>
<ElementManifest Location="elements.xml"/>
<ElementFile Location="Sample.txt"/>
</ElementManifests>
</Feature>
The elements.xml file must be in an ElementManifest element, not an ElementFile element.
<?xml version="1.0" encoding="utf-8" ?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/" >
<Module Name="Deploy" Url="Shared Documents">
<File Url="Sample.txt" Type="GhostableInLibrary" Path="Sample.txt">
</File>
</Module>
</Elements>
Having a Path attribute in the Module element means that SharePoint will search a Shared Documents folder within your feature for all files (which does not exist).

How to write xml schema for this xml file

<?xml version="1.0" encoding="utf-8" ?>
<ConnectionConfig>
<Machine Ip="192.168.0.7">
<ConnectionString>Data Source=TWO;Initial Catalog=Freight;User ID=sa;Password=f5tech</ConnectionString>
</Machine>
</ConnectionConfig>
You could use the xsd.exe utility. Save this to a xml file and:
xsd.exe test.xml
This will infer the schema from the xml file.
I use the Microsoft XML to Schema Tool for Visual Basic 2008

Resources