| 217 | |
| 218 | |
| 219 | static void ProcessActionResponse( |
| 220 | IXML_Document *RespDoc, |
| 221 | const std::string &actionName) |
| 222 | { |
| 223 | std::ostringstream msg; |
| 224 | msg << "Response: "; |
| 225 | IXML_Element *root = IXML::Document::GetRootElement(RespDoc); |
| 226 | IXML_Element *child = IXML::Element::GetFirstChild(root); |
| 227 | if (child) { |
| 228 | while (child) { |
| 229 | const DOMString childTag = IXML::Element::GetTag(child); |
| 230 | std::string childValue = IXML::Element::GetTextValue(child); |
| 231 | msg << "\n " << |
| 232 | childTag << "='" << |
| 233 | childValue << "'"; |
| 234 | child = IXML::Element::GetNextSibling(child); |
| 235 | } |
| 236 | } else { |
| 237 | msg << "\n Empty response for action '" << |
| 238 | actionName << "'."; |
| 239 | } |
| 240 | AddDebugLogLineN(logUPnP, msg); |
| 241 | } |
| 242 | |
| 243 | } /* namespace UPnP */ |
| 244 |
no test coverage detected