Hi;

I have the following snippet:

void myClass::foo1(DOMElement* elt)
{
....
DOMNode* importedNode = domEl->getOwnerDocument()->importNode(..);
// my importedNode is OK (when look to childs node)
(DOMNode*)elt = importedNode;
// my elt is OK ((when look to childs node, I get them correctly)
DOMNode* child = elem->getFirstChild();
// child != NIL
}
I call from my main:
....
DOMElement* elem;
foo1(elem);
....
// my elem is KO (there isn't any child available)
DOMNode* child = elem->getFirstChild();
// child == NIL

What is wrong here?
Thanx for help.
B. Meddeb.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to