| 1115 | } |
| 1116 | |
| 1117 | const XMLElement* XMLNode::ToElementWithName(const char* name) const |
| 1118 | { |
| 1119 | const XMLElement* element = this->ToElement(); |
| 1120 | if (element == 0) { |
| 1121 | return 0; |
| 1122 | } |
| 1123 | if (name == 0) { |
| 1124 | return element; |
| 1125 | } |
| 1126 | if (XMLUtil::StringEqual(element->Name(), name)) { |
| 1127 | return element; |
| 1128 | } |
| 1129 | return 0; |
| 1130 | } |
| 1131 | |
| 1132 | // --------- XMLText ---------- // |
| 1133 | char* XMLText::ParseDeep(char* p, StrPair*, int* curLineNumPtr) |
no test coverage detected