Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (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 CourtoisFriend
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 DahyabhaiFriend
Messages: 4434
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 Web Tools Platform
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 CourtoisFriend
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: Sat Apr 20 03:35:39 GMT 2024

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

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

Back to the top