--- parser3/src/classes/xnode.C 2003/03/06 16:15:25 1.54.2.9 +++ parser3/src/classes/xnode.C 2003/03/07 11:16:44 1.54.2.10 @@ -7,7 +7,7 @@ #include "classes.h" #ifdef XML -static const char* IDENT_XNODE_C="$Date: 2003/03/06 16:15:25 $"; +static const char* IDENT_XNODE_C="$Date: 2003/03/07 11:16:44 $"; #include "pa_vmethod_frame.h" @@ -140,7 +140,7 @@ static void _insertBefore(Request& r, St GdomeException exc; if(GdomeNode *retNode=gdome_n_insertBefore(selfNode, newChild, refChild, &exc)) { // write out result - r.write_no_lang(ValuePtr(new VXnode(&pool, retNode))); + r.write_no_lang(ValuePtr(new VXnode(&pool, &r.charsets, retNode))); } else throw Exception( method_name, @@ -158,7 +158,7 @@ static void _replaceChild(Request& r, St GdomeException exc; if(GdomeNode *retNode=gdome_n_replaceChild(selfNode, newChild, refChild, &exc)) { // write out result - r.write_no_lang(ValuePtr(new VXnode(&pool, retNode))); + r.write_no_lang(ValuePtr(new VXnode(&pool, &r.charsets, retNode))); } else throw Exception( method_name, @@ -175,7 +175,7 @@ static void _removeChild(Request& r, Str GdomeException exc; if(GdomeNode *retNode=gdome_n_removeChild(selfNode, oldChild, &exc)) { // write out result - r.write_no_lang(ValuePtr(new VXnode(&pool, retNode))); + r.write_no_lang(ValuePtr(new VXnode(&pool, &r.charsets, retNode))); } else throw Exception( method_name, @@ -192,7 +192,7 @@ static void _appendChild(Request& r, Str GdomeException exc; if(GdomeNode *retNode=gdome_n_appendChild(selfNode, newChild, &exc)) { // write out result - r.write_no_lang(ValuePtr(new VXnode(&pool, retNode))); + r.write_no_lang(ValuePtr(new VXnode(&pool, &r.charsets, retNode))); } else throw Exception( method_name, @@ -221,7 +221,7 @@ static void _cloneNode(Request& r, Strin GdomeException exc; // write out result - r.write_no_lang(ValuePtr(new VXnode(&pool, gdome_n_cloneNode(node, deep, &exc)))); + r.write_no_lang(ValuePtr(new VXnode(&pool, &r.charsets, gdome_n_cloneNode(node, deep, &exc)))); } // DOM1 element @@ -296,7 +296,7 @@ static void _getAttributeNode(Request& r GdomeException exc; if(GdomeAttr *attr=gdome_el_getAttributeNode(element, r.transcode(name).get(), &exc)) { // write out result - r.write_no_lang(ValuePtr(new VXnode(&pool, (GdomeNode *)attr))); + r.write_no_lang(ValuePtr(new VXnode(&pool, &r.charsets, (GdomeNode *)attr))); } else if(exc) throw Exception( method_name, @@ -312,7 +312,7 @@ static void _setAttributeNode(Request& r GdomeException exc; if(GdomeAttr *returnAttr=gdome_el_setAttributeNode(element, newAttr, &exc)) { // write out result - r.write_no_lang(ValuePtr(new VXnode(&pool, (GdomeNode *)returnAttr))); + r.write_no_lang(ValuePtr(new VXnode(&pool, &r.charsets, (GdomeNode *)returnAttr))); } else throw Exception( method_name, @@ -350,7 +350,7 @@ static void _getElementsByTagName(Reques *skey << pool.format_integer(i); result->hash(Exception::undefined_source).put( skey, - ValuePtr(new VXnode(&pool, gdome_nl_item(nodes, i, &exc)))); + ValuePtr(new VXnode(&pool, &r.charsets, gdome_nl_item(nodes, i, &exc)))); } } else if(exc) throw Exception( @@ -383,7 +383,7 @@ static void _getElementsByTagNameNS(Requ *skey << pool.format_integer(i); result->hash(Exception::undefined_source).put(skey, - ValuePtr(new VXnode(&pool, gdome_nl_item(nodes, i, &exc)))); + ValuePtr(new VXnode(&pool, &r.charsets, gdome_nl_item(nodes, i, &exc)))); } } @@ -459,7 +459,7 @@ static void selectNodesHandler(Request& *skey << pool.format_integer(i); hash.put(skey, - ValuePtr(new VXnode(&pool, gdome_xml_n_mkref(res->nodesetval->nodeTab[i])))); + ValuePtr(new VXnode(&pool, &r.charsets, gdome_xml_n_mkref(res->nodesetval->nodeTab[i])))); } } break; @@ -487,7 +487,7 @@ static void selectNodeHandler(Request& r expression, "resulted not in a single node (%d)", res->nodesetval->nodeNr); - result=ValuePtr(new VXnode(&pool, gdome_xml_n_mkref(res->nodesetval->nodeTab[0]))); + result=ValuePtr(new VXnode(&pool, &r.charsets, gdome_xml_n_mkref(res->nodesetval->nodeTab[0]))); } break; case XPATH_BOOLEAN: