Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » Inserting into the DOM
Inserting into the DOM [message #159669] Wed, 08 February 2006 15:58 Go to next message
Brian Jakubik is currently offline Brian JakubikFriend
Messages: 140
Registered: July 2009
Senior Member
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 19:42 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

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


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:Problem with webtools plugin
Next Topic:extends CSSContentOutlineConfiguration
Goto Forum:
  


Current Time: Sat Apr 27 00:17:00 GMT 2024

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

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

Back to the top