| [news.eclipse.webtools] Re: Getting DOM from StructuredTextEditor |
David Carver wrote:
Philippe Sabourin wrote:Also, this method only gives you a shell of the XML, with many of the commands missing (such as getTextContent()). Is there a way to get the full XML?
The current model is on DOM Level 1 API compliant, it doesn't implement all of DOM Level 2 and none of DOM Level 3. DOM Level 3 implements the getTextContent(). You can use getNodeValue() or another DOM Level 1 api to get the information.
If you need DOM Level 2 and Level 3 support, I would suggest opening a bug report to ask for it.
In the meantime, you can make an equivalant function by following the example at the end of this article:
http://www.cafeconleche.org/books/xmljava/chapters/ch12.html
Philippe