Skip to content
Snippets Groups Projects
Commit 5cbb0e01 authored by Tim Übelhör's avatar Tim Übelhör
Browse files

Fixed parsing xml attributes

parent af0332e1
No related branches found
No related tags found
No related merge requests found
......@@ -48,7 +48,7 @@ namespace Files
// Create a property tree from modelDescription.xml
pt::ptree desc;
pt::read_xml(xmlPath.generic_string(), desc);
std::string modelName = desc.get<std::string>("fmiModelDescription.CoSimulation.xmlattr.modelIdentifier");
std::string modelName = desc.get<std::string>("fmiModelDescription.CoSimulation.<xmlattr>.modelIdentifier");
fs::path binaryPath = fs::path(_unzippedPath) / "binaries";
#ifdef __linux__
......@@ -73,7 +73,7 @@ namespace Files
// Create a property tree from modelDescription.xml
pt::ptree desc;
pt::read_xml(xmlPath.generic_string(), desc);
return desc.get<std::string>("fmiModelDescription.xmlattr.guid");
return desc.get<std::string>("fmiModelDescription.<xmlattr>.guid");
}
std::string FmuFile::GetResourceUri()
{
......
No preview for this file type
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment