- std::cout << body << std::endl;
- txt_view->get_buffer()->insert_at_cursor("<IN>\n");
- txt_view->get_buffer()->insert_at_cursor(Glib::locale_to_utf8(body));
- txt_view->get_buffer()->insert_at_cursor("</IN>\n");
+ /* lo paso a la carga del XML */
+ /* verifico que body este completo */
+ if ((body.find("</planta>")>0) && (body.find("<planta>")>0)) {
+ //loadXML(body);
+ xml_body = body;
+ load_xml_dispatch();
+ } else {
+ txt_view->get_buffer()->insert_at_cursor("<IN>\n");
+ txt_view->get_buffer()->insert_at_cursor(Glib::locale_to_utf8(body));
+ txt_view->get_buffer()->insert_at_cursor("</IN>\n");
+ }