]> git.llucax.com Git - z.facultad/75.42/plaqui.git/blobdiff - Server/src/response_parser.cpp
faltaba un barra n
[z.facultad/75.42/plaqui.git] / Server / src / response_parser.cpp
index c34bbfbd9b413c038dd90905462fce73f06d381a..595e4f30113d577617592779d2b11742d4cfb0de 100644 (file)
@@ -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 += "</";
-               response->xml_body += name + ">";
+               response->xml_contents += "</";
+               response->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;
        }
 }