是否有可能在smooks配置文件中抛出异常。例如,在一个有序的xml中,
<order id="332">
<header>
<customer number="123">Joe</customer>
</header>
<order-items>
<order-item id='1'>
<product>1</product>
<quantity>2</quantity>
<price>8.80</price>
</order-item>
</order-items>
</order>如果节点<order-items>不存在,则应抛出异常或出现错误。在Smooks配置文件中有这样做的选项吗?
发布于 2013-01-10 22:11:33
你可以看看验证盒。请参阅用户指南。
https://stackoverflow.com/questions/14258126
复制相似问题