Hi Christy,
Please post Xalan-C questions on the Xalan-C user list. This list is not
the appropriate forum for these questions.
Dave
"Moore,
Christie" To:
"'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
<christie.moore@ cc: (bcc: David N
Bertoni/Cambridge/IBM)
attws.com> Subject: I am not getting correct info
from XalaNode*
10/17/2002 09:05
AM
Please respond
to xerces-c-dev
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Re: I am not getting correct info from XalaNode*
David N Bertoni/Cambridge/IBM Fri, 18 Oct 2002 01:32:07 -0700
- I am not getting correct info from XalaNode* Moore, Christie
- David N Bertoni/Cambridge/IBM
