Hi ,
 
Here is my code,
..................
 DOMDocument*   Domdoc = (DOMDocument*)theLiaisonPtr->mapToXercesDocument(theDocumentPtr);
 XalanDocument *Xalandoc = theLiaisonPtr->createDocument(Domdoc,false,true,true);  
 
 XalanNode * root_context_node = Xalandoc;
 XalanElement *namespace_node =  Xalandoc->getDocumentElement();
 
try {
        NodeRefList     theResult;
        theEvaluator.selectNodeList(
                        theResult,
                        theDOMSupport,
                        root_context_node,
                        _expression_.c_str(),
                        namespace_node);
 
        const NodeRefList::size_type    theLength = theResult.getLength();  // The length displays 5 nodes
        for (NodeRefList::size_type i = 0; i < theLength; ++i)       {
         XalanNode * theNode = theResult.item(i);
                assert(theNode != 0);
        XercesDocumentWrapper *xerces_document_wrapper=theLiaisonPtr->mapDocumentToWrapper(Xalandoc); 
                XalanNode * newImpNode = xerces_document_wrapper->importNode(theNode,true);  // Crashes here
 }       
...............
 
 
Why cant I do an import of the node ?
 
I am coding this way because  the node list has to copied to a RogueWave vector. And this vector will be sorted based on some child node values and I have to attach this vector back to the same document.
 
Any help will be appreciated.
 
-Praveen
 
 


Confidentiality Notice

The information contained in this electronic message and any attachments to this message are intended
for the exclusive use of the addressee(s) and may contain confidential or privileged information. If
you are not the intended recipient, please notify the sender at Wipro or [EMAIL PROTECTED] immediately
and destroy all copies of this message and any attachments.

Reply via email to