XML crashes Smultron / TextWrangler?
Moderators: Eyal Redler, redlers, Ori Redler
-
- Got the auto-title mojo working
- Posts: 20
- Joined: Thu Oct 20, 2005 4:38 pm
- Location: Fallbrook, CA
- Contact:
XML crashes Smultron / TextWrangler?
For whatever reason, when I show package of a Mellel file and unzip the xml file and them attempt to open it in Smultron or TextWrangler, the app becomes virtually stuck and unresponsive, with the Force Quit window showing the app alternating between (Not Responding) and fine state. Does anybody else experience problem reading the Mellel xml file? Thanks.
-
- Already downloaded the guide
- Posts: 25
- Joined: Thu Oct 20, 2005 11:56 am
- Location: Göteborg, Sweden
The xml file can be quite large, also for very simple document, and it can take quite some time to open it in a text editor. On my iBook G4 1.33 MHz 700 MB it took about 50 seconds to open a simple Mellel document in Smultron. (I guess it has something to do with the fact that the xml document more or less is printed on a single, very long line.)
/MagnusG!
/MagnusG!
-
- Knows everything, can prove it
- Posts: 120
- Joined: Thu Aug 10, 2006 1:48 pm
- Location: Boskovice, Czech Republic
- Contact:
If there is a problem with the one-big-line formatting, you can easily filter the main.xml through xmllint:
I’m not sure whether the xmllint comes with the OS, but I’d say it does. The formatted version is also nicer when you want to peek at the internals of the XML format.
(BTW: I can open the XML file in TextWrangler without hassle.)
Code: Select all
$ xmllint --format main.xml > formatted.xml
(BTW: I can open the XML file in TextWrangler without hassle.)
-
- Knows everything, can prove it
- Posts: 113
- Joined: Thu Oct 20, 2005 2:59 am
I found this too. Try a smaller file.fitzgunnar wrote:The xml file can be quite large, also for very simple document, and it can take quite some time to open it in a text editor. On my iBook G4 1.33 MHz 700 MB it took about 50 seconds to open a simple Mellel document in Smultron. (I guess it has something to do with the fact that the xml document more or less is printed on a single, very long line.)
/MagnusG!
-
- Got the auto-title mojo working
- Posts: 20
- Joined: Thu Oct 20, 2005 4:38 pm
- Location: Fallbrook, CA
- Contact:
Thanks for the xmllint hint. It solved the hang-up problem.
Note to Redlers: although I seem to be alone with this problem (don't know why - my machine isn't that old - G5 iMac iSight 1.9 512MB 10.4.7) maybe the xmllint --format should be the default option? Having the xml file be one long line doesn't make it very easy to read, and apparently for me, or to open. Thanks.
Regards,
Ken
Note to Redlers: although I seem to be alone with this problem (don't know why - my machine isn't that old - G5 iMac iSight 1.9 512MB 10.4.7) maybe the xmllint --format should be the default option? Having the xml file be one long line doesn't make it very easy to read, and apparently for me, or to open. Thanks.
Regards,
Ken
-
- Co-founder
- Posts: 695
- Joined: Thu Oct 27, 2005 9:15 am
A preferences option for "pretty printing" xml is something we plan for the future...
Eyal Redler
----------------------
Co-Founder and Owner at Mellel
Facebook: http://www.facebook.com/mellelwordprocessor
YouTube: http://www.youtube.com/user/MellelRedlex
Donate: https://www.paypal.com/donate/?hosted_b ... 2LWB33YBZW
----------------------
Co-Founder and Owner at Mellel
Facebook: http://www.facebook.com/mellelwordprocessor
YouTube: http://www.youtube.com/user/MellelRedlex
Donate: https://www.paypal.com/donate/?hosted_b ... 2LWB33YBZW
-
- Co-founder
- Posts: 695
- Joined: Thu Oct 27, 2005 9:15 am
Not really. It just adds to the size of the file but it could be that we just need to always pretty print the file. When we implement this, we'll see what's the difference in file size and decide according to that.zoul wrote:Why would anybody want to turn the indenting off? Does it impose some serious performance hit? (Just curious
Eyal Redler
----------------------
Co-Founder and Owner at Mellel
Facebook: http://www.facebook.com/mellelwordprocessor
YouTube: http://www.youtube.com/user/MellelRedlex
Donate: https://www.paypal.com/donate/?hosted_b ... 2LWB33YBZW
----------------------
Co-Founder and Owner at Mellel
Facebook: http://www.facebook.com/mellelwordprocessor
YouTube: http://www.youtube.com/user/MellelRedlex
Donate: https://www.paypal.com/donate/?hosted_b ... 2LWB33YBZW
Great news. I’ve also switched to Smultron some time ago and (even it may be the fault of Smultron) it could not be used with Mellel XML files. I’ve tried a smaller (one page) Mellel file and while it opened after some (or some more) seconds, every action you try to do (scrolling, editing) results in a spinning beachball (not of death).Eyal Redler wrote:A preferences option for "pretty printing" xml is something we plan for the future...
The same file will be opened fast in an old version of SubEthaEdit, but I hoped I could replace that with Smultron.
-
- Read the guide, knows everything
- Posts: 50
- Joined: Mon Nov 14, 2005 10:08 am
- Location: The Train between Davis and San Francisco
I find Oxygen (like many of its Java brethren) to crawl — not too shabby feature set, though. BBEdit (or its free little brother TextWrangler) from BareBones Software has been my constant text editing companion for some years now. It'll handle a big file without flipping out, something Smultron can't really say.who would not?
Of course, now that we have grep searching in Mellel, I can't even think of a reason that I would want to edit a Mellel file in BBEdit! Edit: I just did. The diff features (to identify all differences between two files, or between versions of the same file) are really pretty fantastic. Now if Mellel had a well implemented Diff function, that would be pretty great...
Looking through the filetype is interesting from a "learn about how a word processor works" perspective. It hadn't really occurred to me how big all the style information is. Just saying, is all.