tdm_reader.cpp: load XML from ifstream

This commit is contained in:
Mario Fink 2021-01-20 10:32:56 +01:00
parent 5c2c643dfe
commit 5286a45ffc

View File

@ -41,7 +41,11 @@ void tdm_reaper::process_tdm(bool showlog)
// set up xml-parser and load tdm-file // set up xml-parser and load tdm-file
try { try {
xml_result_ = xml_doc_.load_file(tdmfile_.c_str()); // load XML document from stream
std::ifstream fin(tdmfile_.c_str());
xml_result_ = xml_doc_.load(fin);
fin.close();
// xml_result_ = xml_doc_.load_file(tdmfile_.c_str());
if ( showlog ) if ( showlog )
{ {