| 1083 | } |
| 1084 | |
| 1085 | XMLError XMLElement::QueryUnsignedText(unsigned* uval) const { |
| 1086 | if (FirstChild() && FirstChild()->ToText()) { |
| 1087 | const char* t = FirstChild()->ToText()->Value(); |
| 1088 | if (XMLUtil::ToUnsigned(t, uval)) { |
| 1089 | return XML_SUCCESS; |
| 1090 | } |
| 1091 | return XML_CAN_NOT_CONVERT_TEXT; |
| 1092 | } |
| 1093 | return XML_NO_TEXT_NODE; |
| 1094 | } |
| 1095 | |
| 1096 | XMLError XMLElement::QueryBoolText(bool* bval) const { |
| 1097 | if (FirstChild() && FirstChild()->ToText()) { |