|
Q1> I use a xalan's xpath dll, and evaluate _expression_, "SimpleXPathAPI personal.xml / descendant::email/self::text()". The result of above execution is null. and "SimpleXPathAPI personal.xml / count(descendant::email/self::text())" is 'Exception caught!'. Why? Q2> If the result of _expression_ evaluation is a node-set, How I access 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) { .... <-- I don't know this code... } ----------------------------------------------- personal.xml Boss Big [EMAIL PROTECTED] Worker One [EMAIL PROTECTED] Worker Two [EMAIL PROTECTED] Worker Three [EMAIL PROTECTED] Worker Four [EMAIL PROTECTED] Worker Five [EMAIL PROTECTED] ----------------------------------------- personal.dtd ------------------------------------------ |
- Re: I don't use a node test, "text()." spchang
- Re: I don't use a node test, "text()." Wolfgang Schell
