I am unable to open my KML/KMZ file in Google Earth. The error I am getting is:
parse error at line 1, column 4
not well-formed (invalid token)
I have tried opening in Notepad++ and read everything but I cannot find how to fix the problem.
I would greatly appreciate if anyone can help. I am able to send the file in necessary.
Basically, to fix an invalid KML file you first need to make sure the KML file is a well-formed XML file. That means it follows the basic rules of XML such as the start tags and end tags must be match. If the file has a .kmz extension then you need to unzip the .kml file from the compressed KMZ file. (KMZ is just a .zip file).
Given that the error is at line 1 should make fixing it simple.
The valid KML file should start with the following lines:
<?xml version="1.0" encoding="UTF-8"?>
<kml xmlns="http://www.opengis.net/kml/2.2">
...
More detailed steps to repair an invalid KML file with an example can be found here.
Google Earth will tell you exactly where the code is tripping up. Led me to some ampersands in my CDATA (html-formatted attribute data). I was able to fix mine by removing all of the ampersands.
Related
I've tried repairing an Excel file repeatedly, but I keep getting the same error. I've also copied all the tabs and modules to a new file. And I've copied just the used cells to new tabs. No approach permanently resolves the problem. The initial error message is "We found a problem with some content in ." After repairing, I get
The error log contains:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<recoveryLog xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main">
<logFileName>error092360_04.xml</logFileName>
<summary>Errors were detected in file 'N:\Valuation Archive\MLA\SMI\2022-02-17
\FinalData\FinalData2\Updates 2021\SMI PIT Data 2021 with UW window checks rep2.xlsm'</summary>
<repairedRecords><repairedRecord>Repaired Records: Table from /xl/tables/table6.xml part (Table)
</repairedRecord></repairedRecords>
</recoveryLog>
I've tried every online suggestion I could find, to no avail.
My question is, is there some way I can access the bad records in "/xl/tables/table6.xml part" and perhaps correct the problem there? I have no idea where that would be. Excel seems to be incapable of saving its corrections to that table.
I have been downloading an Excel extract of the data from a work management service called Workfront, but somehow it started to spit out a corrupted file since a few months ago. If I open the Excel file, the Excel repairs it successfully, but this has become annoying. I wonder anyone can interpret the xml repair log. I have not touched the exportation setup so this must have something to do with the data?
this is the message it shows after repairing:
Repaired Part: /xl/worksheets/sheet1.xml part.
and this is the repair log:
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<recoveryLog xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main"><logFileName>error206080_03.xml</logFileName><summary>Errors were detected in file 'C:\Users\pb1101\Downloads\Task_Metrics_2021-08-13T12_45_37.xlsx'</summary><repairedParts><repairedPart xml:space="preserve">Repaired Part: /xl/worksheets/sheet1.xml part. </repairedPart></repairedParts></recoveryLog>
We have a simple html page with a list of links on a Tomcat server. Many of the links are just a simple .msg file for users to download, fill-in and send. Works great in Chrome but not in IE. IE tries to load the .msg file and all you see is 'garbally gook'.
I've tried searching for answers but none have worked so far.
Tried:
- Adding 'download' to the tag but of course this isn't supported in IE.
- Tried adding a .htaccess file with: AddType application/octet-stream .msg, but this didn't work either.
Tomcat is by Apache so I'm really surprised the .htaccess file answer didn't work. Some answers suggested using PHP or adjusting config files, but this is a little over my head. Who would have thought such a seemingly simple question would be so technical to fix!
Many thanks for any direction you are able to suggest!
I finally found my answer so for the next none techy, hopefully this will help you too!
For Apache Tomcat, find your web.xml and open in Note Pad. Search for MIME, you want to keep going until you find your MIME types, they will look like the below code. They are sorted alphabetically so place your new MIME type accordingly. For me it was a .msg file that I wanted IE to prompt an open/save as, rather than just trying to opening it.
<mime-mapping>
<extension>msg</extension>
<mime-type>application/vnd.ms-outlook</mime-type>
</mime-mapping>
To find the appropriate MIME type, I just did a Google search for 'Outlook .msg MIME Type' and found it pretty quickly. After you have added your new MIME Type save and restart your server.
Issue: web.xml wouldn't let us save over it. We got around this by saving our new file with a different name, rename/delete the existing web.xml file and then renaming the updated file back to web.xml.
Issue: After restarting the server, IE STILL tried to read the .msg file rather than opening it, even after refreshing cache, grrrr! Trying another link we hadn't tried before, revealed the new MIME Type to be working and testing on another computer confirmed it.
Good luck!
So I have a XML file that contains a lot of data. My task is to extract the 'name' and 'description' information from the XML file so it reads out. I have been messing with it for a while, and I got half way there.
The way the data that I need to extract in the XML file looks like is
<name> Some Name</name>
and the data that is in the description is
<description> The Description </description>
What I have done is extract all the description to a text file, but I know I am doing this the hard/not efficient way. Any ideas?
Also, if I could add some detail to help describe what I am doing, I can do so! Hopefully I described it efficiently though.
Based on comments in question, create a C# application which uses XPath to extract the nodes you are interested in.
A good tutorial to follow:
http://support.microsoft.com/kb/308333
I used http://site-perf.com/ to test the speed of my site (http://sweatingthebigstuff.com) and it shows one file that gives a 404 error. That file does not exist (hence the error), but how do I found out how to fix it? I don't know where it is being called (definitely not in the code).
The file in question is:
sweatingthebigstuff.com/wp-content/themes/WillTech_5_3_2010/lib/images/icon-rss.gif
I assume that I used to have a file but since deleted it. It was in a widget and it is now pointing to a png file.
Any ideas?
It was in a widget and it is now pointing to a png file.
There is a reference to it somewhere - in a forgotten HTML file, in a style sheet.... The easiest might be doing a full-text search for your whole (local) Wordpress directory for icon-rss.gif.
If that doesn't turn up anything - it should, though! - try using a downloader like GetLeft to fetch a full HTML copy of your site, and do a full text search on that. That should at least show you which page the offending line is on.