XML-EDI Validation

28 views
Skip to first unread message

Prashant Khandagale

unread,
Jan 15, 2025, 3:40:36 AMJan 15
to Smooks Users
Hi Everyone,
I am working on xml to edi using smooks. I want to use validations for the same in dfdl. 
ValidationMode for Unparser is Limited. I am using below line to catch errors. But it is empty. do we have to use something different for Unparser?

List<Diagnostic> diagnostics = executionContext.get(org.smooks.cartridges.dfdl.parser.DfdlParser.DIAGNOSTICS_TYPED_KEY); 


I am reading about rulebased validation also. Which one is preferable? Please help me with this

Thank you

Prashant Khandagale

unread,
Jan 15, 2025, 4:42:53 AMJan 15
to Smooks Users
Anyone has any Idea about above 
Please let me know

Claude Mamo

unread,
Jan 15, 2025, 2:30:18 PMJan 15
to smook...@googlegroups.com
I am using below line to catch errors. But it is empty. do we have to use something different for Unparser?

What error is being thrown?

I am reading about rulebased validation also. Which one is preferable? Please help me with this

I've recently added guidance around validation in DFDL. The providers in the rules cartridge are pretty basic but they might be enough for what you need. You can always create your own provider though documentation about this is scarce (if any). We're looking into strengthening validation following conversations from last month's community meet-up.

Claude

--
You received this message because you are subscribed to the Google Groups "Smooks Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to smooks-user...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/smooks-user/6447f463-54ed-4d71-af42-81fb34120998n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages