Hi Baccar, you need to declare your function as
void myClass::foo1(DOMElement*& elt)
(note the &), or the changes done to the elt local variable will not be propagated to the calling code.
Alberto
At 20.08 20/07/2004 +0200, Baccar MEDDEB wrote:
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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]