Originally posted by: SystemAdmin
Hi All,
I am working on an interface with Acord XML as my Input and output is a also and XML which is not Acord but a custom Cannocial XSD .
The Acord Input which i would be getting has no reliability on the data coming in. To explain further suppose Acord element <TransactionRequestDt> is having a data type of dateTime in the XSD but it can come with a VARCHAR , Basically the data doesnt adhere to the XSD datatypes , facets and restriction.
for e.g.
<TransactionRequestDt>2006-hdgshs</TransactionRequestDt>
OR
<CustPermId> which is a mandatory field in XSD can come as NULL
<CustPermId/>
My Question is is there a way to do element by element validation on the input XML payload so that we can cleanup/FIX the XML element with CUSTOM STANDARD values e.g.
<TransactionRequestDt> if bad then put CURRENTDATETIME
i found the VALIDATE XML function can validate the whole payload but is there a way to do it element by element.
Please let me know , any suggestion.....
Thanks
KSR
#DataExchange#IBM-Websphere-Transformation-Extender#IBMSterlingTransformationExtender