| 1094 | } |
| 1095 | |
| 1096 | XMLError XMLElement::QueryBoolText(bool* bval) const { |
| 1097 | if (FirstChild() && FirstChild()->ToText()) { |
| 1098 | const char* t = FirstChild()->ToText()->Value(); |
| 1099 | if (XMLUtil::ToBool(t, bval)) { |
| 1100 | return XML_SUCCESS; |
| 1101 | } |
| 1102 | return XML_CAN_NOT_CONVERT_TEXT; |
| 1103 | } |
| 1104 | return XML_NO_TEXT_NODE; |
| 1105 | } |
| 1106 | |
| 1107 | XMLError XMLElement::QueryDoubleText(double* dval) const { |
| 1108 | if (FirstChild() && FirstChild()->ToText()) { |