SIGforum
Opening XML files -- how to?

This topic can be found at:
https://sigforum.com/eve/forums/a/tpc/f/320601935/m/7990051924

August 19, 2017, 06:56 PM
vthoky
Opening XML files -- how to?
Good evening, all.

I'm writing to ask for help with opening XML files. I have an app from Carbonite that backs up SMS messages on my phone, and stores the backups as XML.

I have a selection of files now, from 43KB to something like 27MB. There's a stylesheet in the folder as well.

I can double-click on a small file, and it loads right up in Explorer without issue. Larger files, I would think, would work the same but take longer to load. But what I find is that larger files just don't load at all. I simply get an empty tab in Explorer.

Trying to load one of them directly into Excel (where I'd like for the data to end up anyway) doesn't go smoothly either. Excel asks me which stylesheet to apply, and I point it to the one in the folder. Then I get an error that says, "The file and format of [filename] don't match. The file could be corrupted or unsafe. [Blah, blah, blah.] Do you want to open it anyway?"

I tell it to open anyway, and it faults again, citing an XML parse error.

So. At this point, I can't open a large file and I can't cut it into smaller portions. Is there a better way?




God bless America.
August 19, 2017, 07:04 PM
eyrich
try notepad++




August 19, 2017, 07:09 PM
vthoky
I can open them with notepad, but the copy-and-paste to Excel gets really messy -- lots of excess info.

I did just try opening one of the bad files with Firefox. Firefox points out a particular line and column where it faults. I can replace the short text string at that location with a known character (period, for instance) and the file will load. So it appears there is some sense to the idea that the file is fouled.

The next thing I find is that once I've fixed such errors and can open the file, any pictures that have come in (MMS, rather than SMs) do show up in Firefox, but a copy-and-paste to Excel dumps the pictures. Roll Eyes One trouble after the next, right?




God bless America.
August 19, 2017, 07:20 PM
KenS
Notepad++

It is freeware with no strings attached. It opens all sorts of files.

Ken
August 19, 2017, 07:20 PM
eyrich
Not notepad

notepad++
Very different products.
notepad++ is very powerful




August 19, 2017, 07:44 PM
vthoky
quote:
Originally posted by eyrich:
Not notepad

notepad++
Very different products.
notepad++ is very powerful


I see now. Thank you.




God bless America.
August 19, 2017, 07:58 PM
jbcummings
You ought to be able to open them with Excel IF they are well formed.


———-
Do not meddle in the affairs of wizards, for thou art crunchy and taste good with catsup.
August 19, 2017, 08:28 PM
Copefree
quote:
Originally posted by eyrich:
try notepad++


That's what I use for XMLs at work


_______________
Mind. Over. Matter.
August 19, 2017, 08:59 PM
MrToad
Another vote for Notepad++.




If you like religion, laws or sausage, then you shouldn't watch them being made.
August 20, 2017, 05:14 AM
vthoky
Got it!
Thank you all.




God bless America.
November 15, 2018, 05:28 AM
kimber1911
Notepad++

Install then use the Plugin Manager to add XMLTools.

Pretty Print with line breaks will make the .xml easy to read.

If you ever want to edit a column TextFX is very useful as well.



“We’re in a situation where we have put together, and you guys did it for our administration…President Obama’s administration before this. We have put together, I think, the most extensive and inclusive voter fraud organization in the history of American politics,”
Pres. Select, Joe Biden

“Let’s go, Brandon” Kelli Stavast, 2 Oct. 2021
November 15, 2018, 07:06 AM
fpuhan
It sounds like you're using Windows. WordPad can open XML files and display them in proper format.




You can't truly call yourself "peaceful" unless you are capable of great violence. If you're not capable of great violence, you're not peaceful, you're harmless.

NRA Benefactor/Patriot Member
November 15, 2018, 07:48 AM
henryaz
 
As mentioned already, a good text editor. For Windows, notepad++. On my Mac I use my favorite text editor, BBEdit. All of the markup stuff is highlighted in different colors making it easy to pick out and edit the actual text. OS X/macOS has thousands of .plist files which control many facets of the working system and applications. They are all in XML format, and I regularly edit them with BBEdit (or vi, if it's in a root folder).



When in doubt, mumble
November 15, 2018, 08:04 AM
snidera
I don't think you want to use excel. XML is 'tagged' data, excel will break that link, unless you import it into a structured row/column format. Depending on what all data is in the xml file, that ranges from trivial to impossible. It probably defeats the purpose of having the xml format in the first place.
November 15, 2018, 08:04 AM
WaterburyBob
PsPad is also a good file editor, similar to Notepad++



"If Gun Control worked, Chicago would look like Mayberry, not Thunderdome" - Cam Edwards
November 15, 2018, 11:36 AM
Chance
Are you just double clicking on the XML file or are you importing it?

https://www.howtoexcel.org/pow...ry/import-xml-files/
November 15, 2018, 11:43 AM
lkdr1989
++ for Notepad++, also get the "XML Tools Plugin" for Notepad++.




...let him who has no sword sell his robe and buy one. Luke 22:35-36 NAV

"Behold, I send you out as sheep in the midst of wolves; so be shrewd as serpents and innocent as doves." Matthew 10:16 NASV
November 15, 2018, 12:13 PM
Eponym
I've heard that Notepad++ can be used for this. Roll Eyes
November 15, 2018, 04:31 PM
vthoky
Thanks, all. Lots of mentions of Notepad++.
I hadn't seen it before, but a customer was in-house last week and used it to edit some Python files. It looks pretty neat; I'll give it a try.

Wonder if it will run on a Mac, too...?




God bless America.
November 15, 2018, 04:40 PM
SigJacket
No, but there are good MacOS options. I use Textmate myself for general purpose... or vi. For cross platform, there’s vi (really), or something like Atom.


--
I always prefer reality when I can figure out what it is.

JALLEN 10/18/18
https://sigforum.com/eve/forum...610094844#7610094844