Use inferred grammar in the absence of DTD/Schema

I’ve been meaning to blog about this little feature for a while…

The Eclipse Web Tools has a neat little feature in its XML editor. As is expected, if your XML file has a DTD or schema specified, content assist (ctrl-space) will offer suggestions as you type. More interestingly, if your XML file does not have a DTD or schema specified, content assist will still offer suggestions.

The suggestions that it offers are based on the content of the file. Here’s what it looks like in operation (just after hitting ctrl-space):If you (for whatever reason) want to turn this off (perhaps to reduce the performance hit while editing really large XML files), there is a preference setting, "Web and XML > XML Files > XML Source".

Cool features like this make me giggle like a small child…

This entry was posted in Uncategorized. Bookmark the permalink.

One Response to Use inferred grammar in the absence of DTD/Schema

  1. David Willliams says:

    It’s always rewarding to see someone appreicate the little things🙂

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s