pri*_*iro 5 java xml schema sax
有没有一种方法可以避免或设置一个模式来显示更好的用户友好消息?
我正在解析字符串,并使用reg ex来解释它们,但是可能会有更好的方法。
例如
"cvc-complex-type.2.4.b: The content of element 'node' is not complete. One of '{\"\":offer,\"\":links}' is expected."
Run Code Online (Sandbox Code Playgroud)
相反,我想要:
"The element 'node' is not complete. The child elements 'offer' and 'links' are expected."
Run Code Online (Sandbox Code Playgroud)
再次,我通过创建一个额外的层来验证该问题,从而解决了该问题。但是,当我必须将XML工具与模式验证一起使用时,将显示加密消息。
谢谢
| 归档时间: |
|
| 查看次数: |
3490 次 |
| 最近记录: |