Commit 7262a05d1b062342c57d1e60433e9f1190c29dc5

Authored by Hacene SI HADJ MOHAND
1 parent a851633d

improving xml

Showing 1 changed file with 14 additions and 2 deletions   Show diff stats
src/Parameters/ServicesServer.cpp
... ... @@ -40,8 +40,13 @@ namespace AMDA {
40 40 }
41 41  
42 42 for (auto plugMap : _processPluginMaps) {
  43 + rc = xmlTextWriterStartElement(writer, BAD_CAST plugMap.first.c_str() );
  44 + if (rc < 0) {
  45 + xmlFreeTextWriter(writer);
  46 + return false;
  47 + }
43 48 for (auto plug : plugMap.second) {
44   - rc = xmlTextWriterStartElement(writer, BAD_CAST "process");
  49 + rc = xmlTextWriterStartElement(writer, BAD_CAST "requestProcess");
45 50 if (rc < 0) {
46 51 xmlFreeTextWriter(writer);
47 52 return false;
... ... @@ -66,9 +71,16 @@ namespace AMDA {
66 71 return false;
67 72 }
68 73 }
  74 + // close type node
  75 + rc = xmlTextWriterEndElement(writer);
  76 + if (rc < 0) {
  77 + xmlFreeTextWriter(writer);
  78 + return false;
  79 + }
  80 +
69 81 }
70 82  
71   - // close expressions node
  83 + // close plugins node
72 84 rc = xmlTextWriterEndElement(writer);
73 85 if (rc < 0) {
74 86 xmlFreeTextWriter(writer);
... ...