Don't everybody answer at once ;-)

I apologize if this question is obvious or inappropriate, but it is a
behavior of the parser that I haven't been able to definitively classify
yet.  So, if anyone could offer any help I would really appreciate it.

The reason that is an issue for me is that I have my own representation of
every node (a wrapper node).  So, if a node is returned, I need to create a
new wrapper node.  Now, if I create a new node wrapper for a duplicate
node, then it could end up getting released right out from under the second
node without me knowing it....not to mention that it is unnecessary.

Thanks!




|---------+---------------------------->
|         |           [EMAIL PROTECTED]|
|         |           m                |
|         |                            |
|         |           11/04/2003 04:33 |
|         |           PM               |
|         |           Please respond to|
|         |           xerces-c-dev     |
|         |                            |
|---------+---------------------------->
  
>--------------------------------------------------------------------------------------------------------------|
  |                                                                                    
                          |
  |       To:       [EMAIL PROTECTED]                                                  
                |
  |       cc:                                                                          
                          |
  |       Subject:  Append Child, Insert Before, Remove Child, and Replace Child       
                          |
  
>--------------------------------------------------------------------------------------------------------------|








Each of these methods returns a node that was passed to as an input
parameter.  My question is whether the return value is always the same as
the input value.

For example, if I pass DOMNode foo to replaceChild as the OldChild, will
the return value of the function always be foo?  I need to know if my code
needs to check for the return value or if I can assume that the value is
always the same.

Note: In the past I had been led to believe that they were always the same,
but I wanted to check this before my code goes beta.

Thanks!



---------------------------------------------------------------------
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]

Reply via email to