Removing a node??
Kirk Daries <[email protected]>
| Newsgroups | gmane.comp.java.enhydra.barracuda.general |
|---|---|
| Message-ID | <D09B591872D1D611AF2B0010B5A1AAD0835C04@WCSMAIL> |
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