Skip to main content



      Home
Home » Language IDEs » ServerTools (WTP) » Removing Node from StructuredTextEditor
Removing Node from StructuredTextEditor [message #219740] Thu, 28 August 2008 13:05 Go to next message
Eclipse UserFriend
Hi,

I have a two page editor, one page showing the XML and the other showing a
treeviewer. From the StructuredTextEditor I get IDOMDocument and then try
to remove a child (removeChild(...)) but I get a DOMException without any
message or details about the exception.

Any help/links will be appreciated.

Thanks,

Zeus
Re: Removing Node from StructuredTextEditor [message #219748 is a reply to message #219740] Thu, 28 August 2008 14:00 Go to previous messageGo to next message
Eclipse UserFriend
Zeus Courtois wrote:
> Hi,
>
> I have a two page editor, one page showing the XML and the other showing
> a treeviewer. From the StructuredTextEditor I get IDOMDocument and then
> try to remove a child (removeChild(...)) but I get a DOMException
> without any message or details about the exception.
> Any help/links will be appreciated.

The DOMException thrown should contain an error code. You are
certain you're calling the removeNode() method on the actual parent
Node?

--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
Re: Removing Node from StructuredTextEditor [message #219757 is a reply to message #219748] Thu, 28 August 2008 14:21 Go to previous message
Eclipse UserFriend
Thanks Nitin,

I was trying to remove the child node from the root(the Document itself).
I had to get the immediate parent of the child to remove and it did work.

Thanks,

Zeus Courtois
Previous Topic:Publish does not include xml files in war/ejb-jar
Next Topic:Breakpoints in Javascript
Goto Forum:
  


Current Time: Mon Jul 07 04:39:54 EDT 2025

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

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

Back to the top