Home » Language IDEs » ServerTools (WTP) » Inserting into the DOM
|
Re: Inserting into the DOM [message #160262 is a reply to message #159669] |
Fri, 10 February 2006 14:42  |
Eclipse User |
|
|
|
Brian Jakubik wrote:
> I have a view with an action that will insert xmlns:abc="http://... into the
> document root, I do so by getting the Dom (DOMModelImpl) from the editor,
> get the DomDocument, add the attribute to the element, and append it back
> into the DOMDocument, and it works :), however, I lose formatting on the
> document root, is there a way i can insert this and keep the formatting?
> And is this the right way to be inserting this.
Yes, this is one of several correct ways to insert content.
Insertions through the DOM APIs don't automatically follow the
formatting preferences, though, and the existing format methods
aren't API. These are issues we hope to address in 1.5, time
permitting.
--
- Nitin
|
|
|
Goto Forum:
Current Time: Sat Apr 19 09:58:17 EDT 2025
Powered by FUDForum. Page generated in 0.03228 seconds
|