> Q2>
> If the
>  result of expression evaluation is a node-set, How I acc
> ess each node of node-set?
>  
> const XObjectPtr theResult
> (
>        theEvaluator.evaluate(
>         theDOMSupport,
> 
>         theContextNode,
>         XalanDOMString(argv[3])
> .c_str(),
>         theDocument->getDocumentElement()));
>  
> assert(theResult.null() == false);
>  
> if(theResult->getType() == XObject::eTypeNodeSet)
> {

        const NodeRefListBase& nl = xPtr->nodeset();

        // iterate over all nodes
        for (NodeRefListBase::size_type ii = 0; i < nl.getLength(); i++) {
                XalanNode* pNode = nl.item(i);

                // do something with node
        }


> }

Cheers,

Wolfgang

-- 
Wolfgang Schell
[EMAIL PROTECTED]

GMX - Die Kommunikationsplattform im Internet.
http://www.gmx.net

Reply via email to