|
Re: create IDOMElement [message #481601 is a reply to message #481518] |
Fri, 21 August 2009 17:35 |
|
Navatski Siarhei wrote:
> There are two Editors in MultipageEditor. First editor is SSE xml
> editor. Second editor is visual editor which use structured model
> (IDOMModel) common for both editors.
> In the visual editor I want to create a new element which correspond
> with IDOMElement. I do so:
>
> IDOMElement newElement =
> ((IDOMDocument)getDocument()).createElement("elementName");
> ((IDOMElement)getParent()).appendChild(newElement);
>
> It's ok - document contains new element, BUT STRUCTURED DOCUMENT REGIONS
> of new element ISN'T INITIALIZED. How I can set them right?
>
> thanks
Is getParent() already part of the DOM Document in your example?
--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
Powered by
FUDForum. Page generated in 0.04100 seconds