X-Git-Url: https://git.llucax.com/z.facultad/75.42/plaqui.git/blobdiff_plain/dafb509182bac9b314202fe7dfaf58206da5ccbe..01aa13f85f3032dff11fc23efdaf5a13389bf60e:/Server/src/response_parser.cpp?ds=inline diff --git a/Server/src/response_parser.cpp b/Server/src/response_parser.cpp index c34bbfb..595e4f3 100644 --- a/Server/src/response_parser.cpp +++ b/Server/src/response_parser.cpp @@ -84,13 +84,13 @@ void Response::Parser::on_start_element(const string& name, } // Si no es el elemento raíz, lo agrego al body. } else { - response->xml_body += "<"; - response->xml_body += name + " "; + response->xml_contents += "<"; + response->xml_contents += name + " "; for (AttributeMap::const_iterator i = attrs.begin(); i != attrs.end(); i++) { - response->xml_body += i->first + " = \"" + i->second + "\" "; + response->xml_contents += i->first + " = \"" + i->second + "\" "; } - response->xml_body += ">"; + response->xml_contents += ">"; } } @@ -104,8 +104,8 @@ void Response::Parser::on_end_element(const string& name) { root = true; // Si no, agrega al cuerpo. } else { - response->xml_body += "xml_body += name + ">"; + response->xml_contents += "xml_contents += name + ">"; } } @@ -116,7 +116,7 @@ void Response::Parser::on_characters(const string& chars) { #endif // DEBUG // Sólo nos importa el contenido, lo agregamos. if (!root) { - response->xml_body += chars; + response->xml_contents += chars; } }