24 const std::string &
name = functionElement->localName();
25 if (
name !=
"Function") {
26 throw std::runtime_error(
"Root node must be a Funtion element. Unable to determine parsers.");
29 Poco::XML::Element *typeElement = functionElement->getChildElement(
"Type");
30 std::string functionParserName = typeElement->innerText() +
"Parser";
33 Poco::XML::Element *parametersElement = functionElement->getChildElement(
"ParameterList");
38 Mantid::API::ImplicitFunctionParameterParserFactory::Instance().createImplicitFunctionParameterParserFromXML(
42 Poco::AutoPtr<Poco::XML::NodeList> childFunctions = functionElement->getElementsByTagName(
"Function");
44 for (
unsigned long i = 0; i < childFunctions->length(); i++) {
49 childParser = tempParser;
56 childParser = tempParser;
60 return functionParser;