Hi,
 
Is there possibly a easy way to trap and then translate the messages produced by schema validation into a more meaningful description?
 
For example:
 
<JOB>
    <PORTFOLIO NAME="">
        ,,,,
 
    <CALCULATE USING="">
        ,,,,
</JOB
 
-->ERROR: Duplicate key value declared for identity constraint of element 'JOB'. (stdin:535:32)
 
I would prefer something like PORTFOLIO has duplicate NAME (key='PK_PortfolioName')
 
--> ERROR:The key for identity constraint of element 'JOB' is not found.(stdin:542:7)
 
I would prefer some like USING refers to unknown PORTFOLIO (keyref="FK_UsingPortfolioName')
 
Also this seems to report the last line of the file and not the line of the XML tag that violated the constraint
 
 
Many thanks
Mattt
 
 

The information in this email and attachments is confidential and intended for the attention and use of the named addressee(s). It must not be disclosed, distributed, or copied to any other person without APT's written consent. If you are not the named addressee(s), or a person responsible for delivering it, you are hereby notified that any disclosure, copying, distribution or taking any action in relation to the information is strictly prohibited and may be unlawful. 

 

Reply via email to