Hi
I am validating an XML message against an XSD. In case of failure, I need to know the exact element that failed so that correct response can be returned to client. Message validation policy gives line number that failed but not the element name. Can anyone suggest how to achieve this.
{"fault":{"faultstring":"SMV.ValidateRequest failed with reason: \"Expecting a child element but found none [Line 8]\"","detail":{"errorcode":"steps.messagevalidation.Failed"}}}
Solved! Go to Solution.
Since you mentioned @Dino-at-Google you can check out his Java callout for XSD Validation repo: https://github.com/DinoChiesa/ApigeeEdge-Java-Xsd-Validation
I just happened to be looking at it for the same reason.