|
|
| version 1.98, 2023/09/26 20:49:06 | version 1.100, 2024/09/13 04:01:22 |
|---|---|
| Line 95 private: | Line 95 private: |
| xmlNode& as_node(MethodParams& params, int index, const char* msg) { | xmlNode& as_node(MethodParams& params, int index, const char* msg) { |
| Value& value=params.as_no_junction(index, msg); | Value& value=params.as_no_junction(index, msg); |
| if(Value* vxnode=value.as(VXNODE_TYPE)) | if(VXnode* vxnode=dynamic_cast<VXnode*>(&value)) |
| return static_cast<VXnode*>(vxnode)->get_xmlnode(); | return vxnode->get_xmlnode(); |
| else | else |
| throw Exception(PARSER_RUNTIME, | throw Exception(PARSER_RUNTIME, 0, msg); |
| 0, | |
| msg); | |
| } | } |
| xmlChar* as_xmlchar(Request& r, MethodParams& params, int index, const char* msg) { | xmlChar* as_xmlchar(Request& r, MethodParams& params, int index, const char* msg) { |
| Line 233 struct AccumulateFoundInfo | Line 231 struct AccumulateFoundInfo |
| static void AccumulateFound(xmlNode& node, AccumulateFoundInfo* info) | static void AccumulateFound(xmlNode& node, AccumulateFoundInfo* info) |
| { | { |
| info->hash->put( | info->hash->put( |
| String::Body::Format(info->index++), | pa_uitoa(info->index++), |
| &info->vdoc->wrap(node)); | &info->vdoc->wrap(node)); |
| } | } |
| template<typename I> static void | template<typename I> static void |
| Line 725 static void selectNodesHandler(Request&, | Line 723 static void selectNodesHandler(Request&, |
| if(int size=res->nodesetval->nodeNr) { | if(int size=res->nodesetval->nodeNr) { |
| HashStringValue& hash=vhash.hash(); | HashStringValue& hash=vhash.hash(); |
| for(int i=0; i<size; i++) | for(int i=0; i<size; i++) |
| hash.put( | hash.put(pa_uitoa(i), &xdoc.wrap(*res->nodesetval->nodeTab[i])); |
| String::Body::Format(i), | |
| &xdoc.wrap(*res->nodesetval->nodeTab[i])); | |
| } | } |
| break; | break; |
| default: | default: |