[Xml-compile] Data validation

Mark Overmeer mark at overmeer.net
Mon Mar 19 18:52:18 GMT 2012


* Mark Grimes (mgrimes at cpan.org) [120319 16:20]:
> > In general, it is not possible to continue processing after errors. For a
> > sub-set of schema features, yes.  It is worse than, for instance, a parser
> > for Perl code... and we all know what a missing ';' can mean there :-(
> 
> Unfortunate but understandable. Is there an easy way to split the
> validation phase from the remote call?  I am submitting an array of
> items to the remote service. If I could validate each separately, that
> would help narrow it down if there are errors.

If you can recognize your elements on type (probably, because you get
validation errors so it is not "string"), then you can use various kinds
of hooks.  See XML::Compile::Schema/Schema hooks
-- 
Regards,

               MarkOv

------------------------------------------------------------------------
       Mark Overmeer MSc                                MARKOV Solutions
       Mark at Overmeer.net                          solutions at overmeer.net
http://Mark.Overmeer.net                   http://solutions.overmeer.net




More information about the Xml-compile mailing list