cyclus/core — Issue #27: modify InputXML class to accomodate accessing data from std::string test fixtures
Author: rwcarlsen
Created: 2012-02-03 19:41:03+00:00
State: open

Currently the utility provided by the InputXML class only works if a cyclus input file has gone through the entire load process. This is undesirable for creating unit tests/fixtures. The InputXML class needs to be modified so that code that constructs objects from input file xml runs successfully given an xmlNodePtr that was created from a std::string test fixture. The code in InputXML class now (e.g. get_xpath_content, get_xpath_elements) only runs if curFilePtr among other things have been properly initialized (they are only initialized now if the InputXML::load_file method is invoked). Basically, the get_xpath_[stuff](xmlNodePtr node, std::string expression) methods need to work without any file loading initialization having taken place in the InputXML class. Sorry I can't be more clear - I am still quite unfamiliar with libxml2.