| 1199 | } |
| 1200 | |
| 1201 | const XMLElement* XMLNode::ToElementWithName(const char* name) const |
| 1202 | { |
| 1203 | const XMLElement* element = this->ToElement(); |
| 1204 | if (element == 0) |
| 1205 | { |
| 1206 | return 0; |
| 1207 | } |
| 1208 | if (name == 0) |
| 1209 | { |
| 1210 | return element; |
| 1211 | } |
| 1212 | if (XMLUtil::StringEqual(element->Name(), name)) |
| 1213 | { |
| 1214 | return element; |
| 1215 | } |
| 1216 | return 0; |
| 1217 | } |
| 1218 | |
| 1219 | // --------- XMLText ---------- // |
| 1220 | char* XMLText::ParseDeep(char* p, StrPair*, int* curLineNumPtr) |
no test coverage detected