mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-27 15:32:52 +02:00
add pugixml
Origin commit data
------------------
Commit: 422c91d117
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2015-04-27 (Mon, 27 Apr 2015)
This commit is contained in:
@@ -112,7 +112,7 @@ std::list<UPnPAttribute> CUPnPService::SendSOAP(std::string action, std::list<UP
|
||||
if (envelope != "Envelope")
|
||||
throw std::runtime_error(std::string("XML: no envelope"));
|
||||
|
||||
node = root->xmlChildrenNode;
|
||||
node = xmlChildrenNode(root);
|
||||
if (!node)
|
||||
throw std::runtime_error(std::string("XML: no envelope child"));
|
||||
|
||||
@@ -124,7 +124,7 @@ std::list<UPnPAttribute> CUPnPService::SendSOAP(std::string action, std::list<UP
|
||||
if (soapbody != "Body")
|
||||
throw std::runtime_error(std::string("XML: no soap body"));
|
||||
|
||||
node = node->xmlChildrenNode;
|
||||
node = xmlChildrenNode(node);
|
||||
if (!node)
|
||||
throw std::runtime_error(std::string("XML: no soap body child"));
|
||||
|
||||
@@ -138,13 +138,13 @@ std::list<UPnPAttribute> CUPnPService::SendSOAP(std::string action, std::list<UP
|
||||
std::string faultstring, upnpcode, upnpdesc, errstr;
|
||||
if (soapresponse != "Fault")
|
||||
throw std::runtime_error(std::string("XML: http error without soap fault: ")+rcode);
|
||||
for (node=node->xmlChildrenNode; node; node=node->xmlNextNode)
|
||||
for (node=xmlChildrenNode(node); node; node=xmlNextNode(node))
|
||||
{
|
||||
if (!strcmp(xmlGetName(node),"detail"))
|
||||
{
|
||||
snode=node->xmlChildrenNode;
|
||||
snode=xmlChildrenNode(node);
|
||||
if (snode)
|
||||
for (snode=snode->xmlChildrenNode; snode; snode=snode->xmlNextNode)
|
||||
for (snode=xmlChildrenNode(snode); snode; snode=xmlNextNode(snode))
|
||||
{
|
||||
errstr=xmlGetName(snode);
|
||||
pos = errstr.find(":");
|
||||
@@ -168,7 +168,7 @@ std::list<UPnPAttribute> CUPnPService::SendSOAP(std::string action, std::list<UP
|
||||
if (soapresponse != action + "Response")
|
||||
throw std::runtime_error(std::string("XML: no soap response"));
|
||||
|
||||
for (node=node->xmlChildrenNode; node; node=node->xmlNextNode)
|
||||
for (node=xmlChildrenNode(node); node; node=xmlNextNode(node))
|
||||
results.push_back(UPnPAttribute(xmlGetName(node), xmlGetData(node)));
|
||||
|
||||
xmlFreeDoc(parser);
|
||||
|
Reference in New Issue
Block a user