#ifndef namespacecollector_hh #define namespacecollector_hh #include #include #include class NamespaceCollector { public: NamespaceCollector(const std::string &stem, const char *nsurl); int get_unused_number(xmlNodePtr m, xmlNodePtr n); private: // first: prefix, second: URL typedef std::pair TNsDecl; std::string stem; std::string nsurl; std::set namespaces; void fill(xmlNodePtr n); }; #endif