[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Auto-completion in editors (RE: ANN: XML Origin,


Re:  Auto-completion in editors (RE:  ANN: XML Origin
It sounds easy as long the user enters their elements in document order. But
what do you do when they insert an element somewhere in the middle of the
document?

----- Original Message -----
From: "Michael Kay" <michael.h.kay@n...>
To: "'Paul Prescod'" <paul@p...>; <xml-dev@l...>
Sent: Monday, January 28, 2002 1:02 PM
Subject: RE:  Auto-completion in editors (RE:  ANN: XML
Origin, the XML Editor & XSLT Debugger Released)


> > I'll point out that Komodo behaves as you wish. I know why
> > others don't,
> > however. Implementing it efficiently is not easy if you want
> > it to work
> > well with large documents. You either have to parse from the top or
> > parse backwards from where you are, counting open and close tags,
> > watching out for CDATA sections.
>
> Surely an XML editor has to detect start tags and end tags as they are
> typed, and if it detects start tags, it is trivially easy to maintain a
> stack of open start tags? And the cost of doing so is unrelated to the
size
> of the document (only to the depth of nesting)?
>
> Mike Kay
>
>
> -----------------------------------------------------------------
> The xml-dev list is sponsored by XML.org <http://www.xml.org>, an
> initiative of OASIS <http://www.oasis-open.org>
>
> The list archives are at http://lists.xml.org/archives/xml-dev/
>
> To subscribe or unsubscribe from this list use the subscription
> manager: <http://lists.xml.org/ob/adm.pl>
>


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.