File -> Document and allow use of streams.
[libcxml.git] / src / cxml.h
index 9581adce01e8ea6b0f922b4df00d0656217997bc..7d6e1e002d7d361e9bf8c507350ee61fca5c9e4a 100644 (file)
@@ -158,14 +158,21 @@ private:
        mutable std::list<Glib::ustring> _taken;
 };
 
-class File : public Node
+class Document : public Node
 {
 public:
-       File (std::string file, std::string root_name);
-       virtual ~File ();
+       Document (std::string root_name);
+
+       void read_file (boost::filesystem::path);
+       void read_stream (std::istream &);
+       
+       virtual ~Document ();
 
 private:
+       void take_root_node ();
+       
        xmlpp::DomParser* _parser;
+       std::string _root_name;
 };
 
 }