Modified the code as follows:
> Code snippet begins here:
>
> DOM_Element row = thePage.getElementById("template");
row.removeAttribute("id");
DOM_Element cell1 = thePage.getElementById("cell1");
cell1.removeAttribute("id");
DOM_Element cell2 = thePage.getElementById("cell2");
cell2.removeAttribute("id");
DOM_Element cell3 = thePage.getElementById("cell3");
cell3.removeAttribute("id");
> DOM_Node table = user_row.getParentNode();
>
> for(int i = 0; i < len; i++) {
>
setText(cell1, cell1_data);
// basically does
cell1->appendChild(DOM_Document::createTextNode(cell1_data))
setText(cell2, cell2_data);
setText(cell3, cell3_data);
> DOM_Node clone = row.cloneNode(true);
> table.appendChild(clone);
clone = NULL;
> }
>
> table.removeChild(row);
Still leaking memory. I've checked the document that is output and it does
not contain any duplicate ID attributes and if I'm doing things correctly,
the id attributes should be stripped from all elements before the
cloneNode() method is called.
-Evan
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]