/*
 * $Id: XMLUtils_testNoAttribute.cpp 88 2008-12-10 18:31:39Z rosiere $
 *
 * [ Description ]
 * 
 */

#include "Behavioural/Configuration/include/XMLUtils.h"

namespace morpheo {
namespace behavioural {
namespace configuration {

#undef  FUNCTION
#define FUNCTION "testNoAttribute"

  void testNoAttribute (XML_t * xml)
  {
    if (xml->getAttributes().size() != 0)
      throw ERRORMORPHEO(FUNCTION,toString(_("Syntax error, node \"%s\" have none attribute\n"),xml->getName().c_str()));
  }

}; // end namespace configuration
}; // end namespace behavioural
}; // end namespace morpheo              
