2005/11/26, Dennis Sosnoski <[EMAIL PROTECTED]>: [...]
> It sounds like you're really looking for information on errors in the > binding definition, though - right? If so, the binding model already > accumulates this information in the > org.jibx.binding.model.ValidationContext. The individual problems are > instances of org.jibx.binding.model.ValidationProblem, and the > getComponent() object implements (or should always implement) the > org.jibx.runtime.ITrackSource interface. The reported position should > always be that of the end of the start tag for the element with the problem. > > The actual binding definition validation handling is built into the > org.jibx.binding.model.BindingElement class, in the validateBinding() > method. This actually prints out the errors to System.out, but the > methods it uses are all public and could be used directly for other > types of reporting. I'm having problems trying to hook in BindingElement.validateBinding(). Basically the problem is BindingElement.validateBinding() calls BindingElement.readBinding() which throws JiBXException and do not "populate" the ValidationContext. Am I missing something obvious?? Regards, Jérôme. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=click _______________________________________________ jibx-devs mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jibx-devs
