--- parser3/src/classes/xnode.C 2002/01/21 16:44:48 1.29 +++ parser3/src/classes/xnode.C 2002/01/24 13:57:19 1.31 @@ -4,7 +4,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://paf.design.ru) - $Id: xnode.C,v 1.29 2002/01/21 16:44:48 paf Exp $ + $Id: xnode.C,v 1.31 2002/01/24 13:57:19 paf Exp $ */ #include "classes.h" #ifdef XML @@ -425,12 +425,12 @@ static void selectNodesHandler(Pool& poo const String& expression, xmlXPathObject_auto_ptr res, Value *& result) { + VHash *vhash=new(pool) VHash(pool); result=vhash; switch(res->type) { case XPATH_UNDEFINED: break; case XPATH_NODESET: if(int size=res->nodesetval->nodeNr) { - VHash *vhash=new(pool) VHash(pool); Hash& hash=vhash->hash(0); for(int i=0; inodesetval->nodeTab[0]))); + gdome_xml_n_mkref(res->nodesetval->nodeTab[i]))); } - result=vhash; } break; default: