|
|
| version 1.99, 2024/09/11 21:07:36 | version 1.101, 2024/11/04 03:53:25 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b dom parser class. | Parser: @b dom parser class. |
| Copyright (c) 2001-2023 Art. Lebedev Studio (http://www.artlebedev.com) | Copyright (c) 2001-2024 Art. Lebedev Studio (http://www.artlebedev.com) |
| Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru> | Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru> |
| */ | */ |
| #include "classes.h" | #include "classes.h" |
| 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) { |