Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Web Tools Project (WTP) » Removing Node from StructuredTextEditor
Removing Node from StructuredTextEditor [message #219740] Thu, 28 August 2008 17:05 Go to next message
Zeus Courtois is currently offline Zeus Courtois
Messages: 3
Registered: July 2009
Junior Member
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 18:00 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2266
Registered: July 2009
Senior Member
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


---
Nitin Dahyabhai
Eclipse WTP, IBM
Re: Removing Node from StructuredTextEditor [message #219757 is a reply to message #219748] Thu, 28 August 2008 18:21 Go to previous message
Zeus Courtois is currently offline Zeus Courtois
Messages: 3
Registered: July 2009
Junior Member
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: Wed Sep 17 05:55:03 GMT 2014

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

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