| [news.eclipse.webtools] Re: Questions about building on top of the XML Editor |
I am in the process of writing a form-based editor for an XML file and I want to use WTP's XML editor as the source view. I found a way to get at the XML DOM of the editor and I am able to push changes from the form-based editor to the source view.
Couple of questions...
1. How does one listen for changes to the DOM (in order to update the form-based UI)?
2. Is there a trick/utility for handling formatting when creating content? I know how to do it manually by adding various whitespace sections to the DOM tree, but I'd rather not re-invent the wheel if the wheel already exists. :)