Add nlohmann/json parser
[anna.git] / source / diameter / codec / EngineImpl.cpp
index 5fff449..9d23e57 100644 (file)
@@ -87,7 +87,7 @@ Message* EngineImpl::createMessage(const CommandId *id) throw(anna::RuntimeExcep
 //------------------------------------------------------------------------------
 Message *EngineImpl::createMessage(const std::string & xmlPathFile) throw(anna::RuntimeException) {
   Message *result = createMessage();
-  result->loadXML(xmlPathFile);
+  result->loadXMLFile(xmlPathFile);
   return result;
 }
 
@@ -122,7 +122,7 @@ throw() {
   result->createAttribute("SingleFailedAVP", a_singleFailedAVP ? "yes" : "no");
   result->createAttribute("IgnoreFlags", a_ignoreFlags ? "yes" : "no");
   result->createAttribute("FixMode", asText(a_fixMode));
-  anna::xml::Node* dictionary = result->createChild("EngineImpl.ActivatedDictionary");
+  result->createChild("EngineImpl.ActivatedDictionary");
 
   if(a_dictionary) a_dictionary->asXML(result);