Moved DOM methods up the tree, add copy c'tors, KeyInfo sample
[shibboleth/xmltooling.git] / xmltooling / validation / Validator.h
index 7119883..6962bb8 100644 (file)
@@ -28,8 +28,6 @@
 #include <xmltooling/QName.h>\r
 #include <xmltooling/XMLObject.h>\r
 \r
-using namespace xercesc;\r
-\r
 #if defined (_MSC_VER)\r
     #pragma warning( push )\r
     #pragma warning( disable : 4250 4251 )\r
@@ -57,6 +55,13 @@ namespace xmltooling {
         virtual void validate(const XMLObject* xmlObject) const=0;\r
 \r
         /**\r
+         * Returns a copy of the validator.\r
+         *\r
+         * @return the new validator\r
+         */\r
+        virtual Validator* clone() const=0;\r
+\r
+        /**\r
          * Evaluates the registered validators against the given XMLObject and it's children.\r
          * \r
          * @param xmlObject the XMLObject tree to validate\r