Validate XPATH expressions of errourneous XML
Posted: Wed Nov 07, 2018 9:11 am
Hi,
if a XML is assigned to a XSD and the XML is not valid, it is not possible to check XPATH expressions in the "XPath/XQuery Baumeister".
Let's asume the following case.
You got an expression in the XSD like
where you want to check if the sum of this four nodes = 100.
Now let's asmuse you are validating a XML and you get an validation error; but you expected there is NO validation error.
So you have to evaludate some XPATH expressions to find the single nodes (and their values) which are validated in the XSD assert.
But this XPATH evaluation is not possible.
Would you please change this?
Thanks
Regards
Mario
if a XML is assigned to a XSD and the XML is not valid, it is not possible to check XPATH expressions in the "XPath/XQuery Baumeister".
Let's asume the following case.
You got an expression in the XSD like
Code: Select all
<xsd:assert test="(sum(Z11/S_QTY/C_C186/D_6060 | Z12/S_QTY/C_C186/D_6060 | Z13/S_QTY/C_C186/D_6060 | Z14/S_QTY/C_C186/D_6060 ) = '100') "/>
Now let's asmuse you are validating a XML and you get an validation error; but you expected there is NO validation error.
So you have to evaludate some XPATH expressions to find the single nodes (and their values) which are validated in the XSD assert.
But this XPATH evaluation is not possible.
Would you please change this?
Thanks
Regards
Mario