[prev in list] [next in list] [prev in thread] [next in thread]
List: barracuda
Subject: RE: [Barracuda] Removing a node??
From: Jacob Kjome <hoju () visi ! com>
Date: 2003-07-08 6:17:50
[Download RAW message or body]
Hi Kirk,
I guess you should look at what the Xerces implementation does in the
removeChild() method. Also, I wonder if you are confusing returning null
to BTemplate with working directly on the DOM? BTemplate does all the DOM
stuff for you, so you shouldn't equate BTemplate style programming with
direct DOM programming. The more java-centric DOM frameworks such as
Dom4j, JDOM, and XOM might actually allow for just setting a node to null,
but you'd have to verify that for yourself. Dom4j is a candidate for an
alternate DOM implementation in XMLC-3.0, BTW.
Jake
At 05:01 PM 7/7/2003 +0200, you wrote:
>ok to answer my own question...
>
>this.reportButton.getParentNode().removeChild(this.reportButton);
>
>Still don't know why setting it to null didn't work though! ;)
>
>Regards
>KD
>
>-----Original Message-----
>From: Kirk Daries [mailto:Kirk.Daries@sita.co.za]
>Sent: 07 July 2003 04:48
>To: barracuda@barracudamvc.org
>Subject: [Barracuda] Removing a node??
>
>
>Hi Guys,
>
>Quick question?
>
>How does one remove a node from a xmlc document?
>I thought is was a simple mater of setting it to null...?
>But that doesn't seem to work...
>
>E.g.
>
> public void processButtonNodes(HTMLObject xmlcPage, String pageEvent) {
> this.reportButton = (HTMLButtonElement)
>xmlcPage.getElementById("reportPage");
>
> if (this.removeReportButton == true) {
> if (this.reportButton != null) {
> this.reportButton = null; // Doesn't seemt to work?
> System.out.println("Setting reportButton to null.");
> } else {
> System.out.println("Node not found!!");
> }
> }
>
> super.processButtonNodes(xmlcPage, pageEvent);
> }
>
>
>Can someone clue me in?
>
>Thanx
>KD
>_______________________________________________
>Barracuda mailing list
>Barracuda@barracudamvc.org
>http://barracudamvc.org/lists/listinfo/barracuda
>_______________________________________________
>Barracuda mailing list
>Barracuda@barracudamvc.org
>http://barracudamvc.org/lists/listinfo/barracuda
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic