Skip to content

Commit

Permalink
Complete the parameterXMLString code re #8398
Browse files Browse the repository at this point in the history
Still to be tested

Signed-off-by: Karl Palmen <karl.palmen@stfc.ac.uk>
  • Loading branch information
KarlPalmen committed Dec 16, 2013
1 parent bfe3069 commit 89bd573
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -11,6 +11,7 @@ Load Fullprof resolution (.irf) file to TableWorkspace(s) and optionally into th
#include "MantidGeometry/Instrument.h"
#include "MantidAPI/InstrumentDataService.h"
#include "MantidGeometry/Instrument/InstrumentDefinitionParser.h"
#include "MantidDataHandling/LoadParameterFile.h"

#include <Poco/DOM/DOMWriter.h>
#include <Poco/DOM/Element.h>
Expand Down Expand Up @@ -808,11 +809,12 @@ namespace DataHandling
}

// Convert DOM XML document into string
// ? std::ofstream outFile();
// ? writer.writeNode(outFile, mDoc); // How do I do this?

std::ostringstream outFile;
writer.writeNode(outFile, mDoc);
std::string parameterXMLString = outFile.str();

// Load the string into the workspace
LoadParameterFile::execManually(true, "", parameterXMLString, ws);

}

Expand Down

0 comments on commit 89bd573

Please sign in to comment.