Re: XML outline view

Tim Boudreau <[email protected]>
Newsgroups gmane.comp.java.netbeans.user-interface
Message-ID <[email protected]>
Jesse Glick wrote:
> Tim Boudreau wrote:
> 
>> I should probably zip you a copy of the entire sources for the
>> NetBeans book in DocBook XML.  When your new code will handle that
>> without a hiccup, it's ready.  The old XML tree view took half an
>> hour to parse it and update.
> 
> 
> FWIW: on my laptop, the SAX-based outline view can show an outline for 
> the master file for this book (cca. 2Mb of XML in total) in about two 
> seconds (with a warm disk cache). Not fast, but tolerable, especially if 
> you have the Navigator in sliding mode most of the time (so the list is 
> computed if and when you press Ctrl-7). I don't have the old tree view 
> around to compare; seems to be have been deleted.

Cool.  I did send Marek a zip of the book XML, so he's got it to play with.

I think the biggest argument against using anything DOM-like in this 
kind of context is that it's going to assume a well formed, parsable 
document - and most of the time when an XML file is being edited, that's 
not what you have.

-Tim
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.