I eventually figured out what was going on.  In case anyone else runs into this 
problem, it may be useful to post the solution here.

My validator class extended ValidateHookBase, and had a method of this sort:
   public void checkingDocument(Document doc)

The latest versions no longer call this method, they instead call:
 public void checkingDocument(Document doc, Reason reason, URL url)

If I had used an @Override annotation then Eclipse would have signaled the 
error, but without it there was only a silent failure as my method was no 
longer called.  Adding the additional arguments makes things work again.

Boris




On Nov 8, 2011, at 1:09 PM, Hussein Shafie wrote:

On 11/08/2011 04:35 PM, Boris Goldowsky wrote:
XXE does not seem to be loading and running a validateHook I have defined - 
it's just silently ignored.  Is there some way to debug the loading process and 
see what's going wrong?

In principle configuration errors are displayed in a dialog box just
after XXE is started.

If, for any reason, your validateHook cannot be instantiated by XXE,
then you should see a quite clear error message.



Are there things I might have missed that changed in recent versions
with respect to validate hooks?

Recompiling your validateHook against a recent xxe.jar should allow you
to catch this kind of errors.




I've included the jar file in the configuration directory, and a clause like 
this in the configuration .xxe file:

  <validateHook name="idCreator">
    <class>org.cast.xxe.idcreator.IdCreator</class>
  </validateHook>



The most common pitfall is simply forgetting to clear the quick start
cache (added in v4.9) after changing things in a configuration.

See "Options|Preferences", "Advanced|Cached Data section":
http://www.xmlmind.com/xmleditor/_distrib/doc/help/advancedOptions.html#cacheOptions

--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to