Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Inserting into the DOM
Inserting into the DOM [message #159669] Wed, 08 February 2006 10:58 Go to next message
Eclipse UserFriend
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.

Thanks
Brian Jakubik
Re: Inserting into the DOM [message #160262 is a reply to message #159669] Fri, 10 February 2006 14:42 Go to previous message
Eclipse UserFriend
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
Previous Topic:Problem with webtools plugin
Next Topic:extends CSSContentOutlineConfiguration
Goto Forum:
  


Current Time: Tue Apr 15 02:43:33 EDT 2025

Powered by FUDForum. Page generated in 0.03318 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top