+const string Plant::get_xml(void) const {
+ ostringstream oss;
+ try {
+ ifstream ifs(filename.c_str());
+ ifs >> noskipws;
+ copy(istream_iterator<char>(ifs), istream_iterator<char>(),
+ ostream_iterator<char>(oss));
+ } catch (...) { // TODO hacerlo mas selectivo?
+ return "";
+ }
+ return oss.str();
+}
+