I have created a XObject::eTypeNodeSet using the following code:

const XObjectPtr xObj(theEvaluator.evaluate(theDOMSupport,
                                 theContextNode,
                              XalanDOMString(expression.c_str()).c_str()));

I delared a vector (std::vector<XalanNode*> theResultSet) and I return it
once I loop through the returned nodeset to return each element node.

XalanNode* const node = nodeset.item(i);
theResultSet.pushback(node.cloneNode(true);

I thought I read somewhere that the nodeset returned is reference counted.

I have 3 layers of classes that this vector is returned too.  It returns all
of the correct info inside of each element node until I get to the initial
calling class.  The vector size is still correct the pointers are still
pointing to the same address but the information returning from getNodeName
is not correct.  Would this have something to do with reference counting and
if so how do I fix it.

P.S.  The DOM document, the Parser Liason and the DOM Support references are
all static and not created on the heap.
Thanks.  I hope this is not too confusing.  If more information is needed
please let me know.
  

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

Reply via email to