00001
00002 #ifndef XMLUTIL_SUBSTITUTE_H
00003 #define XMLUTIL_SUBSTITUTE_H
00004
00005 #include <dom/DOM_Document.hpp>
00006 #include <dom/DOMString.hpp>
00007 #include <dom/DOM_TreeWalker.hpp>
00008 #include <string>
00009
00010
00011 namespace xmlUtil {
00020 class Substitute {
00021 public:
00022
00032 Substitute::Substitute(DOM_Document doc, std::string suffix =
00033 std::string("REF"));
00034
00041 int execute(DOM_Element treeTop);
00042
00044 ~Substitute() {};
00045
00046 private:
00047 DOM_Document m_doc;
00048 int m_count;
00049 std::string m_suffix;
00050 int m_suffixLen;
00051 int m_notFound;
00054 void sub(DOM_Element elt);
00055 };
00056
00057 }
00058 #endif