You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by rd...@apache.org on 2004/03/15 23:07:08 UTC

cvs commit: jakarta-commons/digester/src/java/org/apache/commons/digester package.html

rdonkin     2004/03/15 14:07:08

  Modified:    digester/src/java/org/apache/commons/digester package.html
  Log:
  Added FAQ about getting errors from schema validation.
  
  Revision  Changes    Path
  1.29      +18 -2     jakarta-commons/digester/src/java/org/apache/commons/digester/package.html
  
  Index: package.html
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/digester/src/java/org/apache/commons/digester/package.html,v
  retrieving revision 1.28
  retrieving revision 1.29
  diff -u -r1.28 -r1.29
  --- package.html	7 Mar 2004 19:37:07 -0000	1.28
  +++ package.html	15 Mar 2004 22:07:08 -0000	1.29
  @@ -1193,7 +1193,7 @@
   This warning is harmless.</p>
   <p>
   </li>
  -<li></a><strong>Why Doesn't Schema Validation Work With Parser XXX Out Of The Box?</strong>
  +<li><strong>Why Doesn't Schema Validation Work With Parser XXX Out Of The Box?</strong>
   <p>
   Schema location and language settings are often need for validation using schemas.
   Unfortunately, there isn't a single standard approach to how these properties are
  @@ -1209,7 +1209,23 @@
   and add a new class to support the particular parser that's causing problems.
   </p>
   </li>
  -<li></a><strong>Where Can I Find Example Code?</strong>
  +<li><strong>Help! 
  +I'm Validating Against Schema But Digester Ignores Errors!</strong>
  +<p>
  +Digester is based on <a href='http://www.saxproject.org'>SAX</a>. The convention for
  +SAX parsers is that all errors are reported (to any registered 
  +<code>ErrorHandler</code>) but processing continues. Digester (by default) 
  +registers it's own <code>ErrorHandler</code> implementation. This logs details 
  +but does not stop the processing (following the usual convention for SAX 
  +based processors). 
  +</p>
  +<p>
  +This means that the errors reported by the validation of the schema will appear in the
  +Digester logs but the processing will continue. To change this behaviour, call
  +<code>digester.setErrorHandler</code> with a more suitable implementation.
  +</p>
  +
  +<li><strong>Where Can I Find Example Code?</strong>
   <a name="doc.FAQ.Examples">
   <p>Digester ships with a sample application: a mapping for the <em>Rich Site 
   Summary</em> format used by many newsfeeds. Download the source distribution 
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org