XML crashes Smultron / TextWrangler?

For all things Mellel

Moderators: Eyal Redler, redlers, Ori Redler

Post Reply
lorienken
Got the auto-title mojo working
Posts: 20
Joined: Thu Oct 20, 2005 4:38 pm
Location: Fallbrook, CA
Contact:

XML crashes Smultron / TextWrangler?

Post by lorienken »

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.
d_h
Got the auto-title mojo working
Posts: 23
Joined: Fri Oct 21, 2005 2:33 am

Post by d_h »

A test document worked for me in TextWrangler
fitzgunnar
Already downloaded the guide
Posts: 25
Joined: Thu Oct 20, 2005 11:56 am
Location: Göteborg, Sweden

Post by fitzgunnar »

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!
zoul
Knows everything, can prove it
Posts: 120
Joined: Thu Aug 10, 2006 1:48 pm
Location: Boskovice, Czech Republic
Contact:

Post by zoul »

If there is a problem with the one-big-line formatting, you can easily filter the main.xml through xmllint:

Code: Select all

$ xmllint --format main.xml > formatted.xml
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.)
Stephen Still
Knows everything, can prove it
Posts: 113
Joined: Thu Oct 20, 2005 2:59 am

Post by Stephen Still »

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!
I found this too. Try a smaller file.
lorienken
Got the auto-title mojo working
Posts: 20
Joined: Thu Oct 20, 2005 4:38 pm
Location: Fallbrook, CA
Contact:

Post by lorienken »

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
Eyal Redler
Co-founder
Posts: 692
Joined: Thu Oct 27, 2005 9:15 am

Post by Eyal Redler »

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
zoul
Knows everything, can prove it
Posts: 120
Joined: Thu Aug 10, 2006 1:48 pm
Location: Boskovice, Czech Republic
Contact:

Post by zoul »

Why would anybody want to turn the indenting off? Does it impose some serious performance hit? (Just curious :)
Eyal Redler
Co-founder
Posts: 692
Joined: Thu Oct 27, 2005 9:15 am

Post by Eyal Redler »

zoul wrote:Why would anybody want to turn the indenting off? Does it impose some serious performance hit? (Just curious :)
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.
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
Mart°n
Knows everything, can prove it
Posts: 672
Joined: Fri Oct 21, 2005 2:09 am
Location: Germany

Post by Mart°n »

Eyal Redler wrote:A preferences option for "pretty printing" xml is something we plan for the future...
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).
The same file will be opened fast in an old version of SubEthaEdit, but I hoped I could replace that with Smultron.
zoul
Knows everything, can prove it
Posts: 120
Joined: Thu Aug 10, 2006 1:48 pm
Location: Boskovice, Czech Republic
Contact:

Post by zoul »

Maria wrote:No need for the Redlers to blow up the file format.
Well it should not be exactly blowing up: My 75-page test document went up by 18 KB (~ 18 %) after indenting and recompressing, that should not be a big deal.
nvalvo
Read the guide, knows everything
Posts: 50
Joined: Mon Nov 14, 2005 10:08 am
Location: The Train between Davis and San Francisco

Post by nvalvo »

who would not?
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.

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.
Post Reply