2012-02-15 9 views
2

XSDスキーマの検証エラーはどこで定義されていますか?SAXParseExceptions:cvc-errorsのカタログ

私はSAX-ErrorHandlerを作成しており、体系的に対処したいと考えています。

public void error(SAXParseException e) throws SAXException { 
    if (e.getMessage().startsWith("cvc-pattern-valid:")) { 
     .. custom handling, perhaps ignoring .. 
    } else if (e.getMessage().startsWith("cvc-type.3.1.3:")) { 
     .. custom handling, perhaps ignoring .. 
    } else { 
     throw (e); 
    } 
} 

実際のエラーに対処するには、これ以上の方法もあります。

答えて

2

ご覧ください。here;数字がどういうものかについても説明しています。

+0

偉大な、私はドキュメントを参照していたが、それを見つけられなかった! – Bastl

関連する問題