| 1744 | } |
| 1745 | |
| 1746 | XMLError XMLElement::QueryBoolText(bool* bval) const |
| 1747 | { |
| 1748 | if (FirstChild() && FirstChild()->ToText()) |
| 1749 | { |
| 1750 | const char* t = FirstChild()->Value(); |
| 1751 | if (XMLUtil::ToBool(t, bval)) |
| 1752 | { |
| 1753 | return XML_SUCCESS; |
| 1754 | } |
| 1755 | return XML_CAN_NOT_CONVERT_TEXT; |
| 1756 | } |
| 1757 | return XML_NO_TEXT_NODE; |
| 1758 | } |
| 1759 | |
| 1760 | XMLError XMLElement::QueryDoubleText(double* dval) const |
| 1761 | { |
nothing calls this directly
no test coverage detected