+void
+SPL::write (boost::filesystem::path path) const
+{
+ xmlpp::Document doc;
+ xmlpp::Element* root = doc.create_root_node ("SPL");
+ root->add_child("Id")->add_child_text (_id);
+ root->add_child("Name")->add_child_text (_name);
+ BOOST_FOREACH (SPLEntry i, _spl) {
+ i.as_xml (root->add_child("Entry"));
+ }
+ doc.write_to_file_formatted (path.string());