Thx for the hint. I hope to remember it when in need again 😂.

Martin

05.06.2025 12:06:34 Hussein Shafie <[email protected]>:

> On May 30, 2025, Martin wrote:
>> Proposal: When opening an XML Document for the very first time I'd like
>> to see an option for specifying the initial view mode e.g., (Docbook |
>> Table of Contents | XML  Source).
>> Background: I was regularly editing a larger master document in »Table
>> of Contents« view mode for an extended time period. This document had to
>> be moved to a new filesystem location requiring to re-open it. XXE
>> started opening it in »Docbook« mode becoming unresponsive for several
>> minutes and generating maximum system load on all cores before I
>> eventually killed the application. The application may have been
>> overwhelmed by this large document containing lots of images and formulas.
>> I then tried to clear the cache and eventually the whole ~/.xxe10 folder
>> to no avail. My last resort became tweaking the
>> ~/.xxe10/preferences.properties file manually by crafting a line:
>> viewSettings=file\:/home/.../mydocument.xml\nTable of contents;...
>> Only then was I able to open the master document in question and working
>> on its modules.
> 
> On 5/30/25 10:59, Hussein Shafie wrote:
>> We'll make our best efforts to implement this feature, but only as a command 
>> line option, e.g.
>> xxe -view 'Table of Contents' my_large_doc.xml
>> Note that this new command line option would end up doing exactly what you 
>> did by hand, that is, update the viewSettings user preferences (See 
>> "viewSettings" in https://www.xmlmind.com/xmleditor/_distrib/doc/help/ 
>> preferenceKeys.html).
>> 
> 
> After looking at the code it seems that implementing the -view command-line 
> option described above is (surprisingly) quite involved. Therefore we gave up 
> this idea. Sorry for that!
> 
> OTOH, there is a way to achieve what you want without having to edit by hand 
> the "viewSettings" preference in the user preferences file 
> (https://www.xmlmind.com/xmleditor/_distrib/doc/help/preferenceKeys.html).
> 
> We have updated our FAQ to explain the procedure. See "What if, after 
> increasing the amount of Java™ memory, opening my large XML document still 
> takes forever?" in 
> https://www.xmlmind.com/xmleditor/faq.html#minimal_memory_footprint

--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to