Search code examples
javaxmlparsingedismooks

Is it possible to map NCPDP d.0 to XML using Smooks?


I have a file containing NCPDP data (NCPDP d.0) and I want to map it to my Java classes using Smooks. In the past I have used Smooks for EDI X12, but I am having trouble using it for NCPDP.

What I've tried:
I have defined the delimiters (RS,FS,GS), but Smooks is not detecting any of the segments/segment Code from the given string of NCPDP format, also in the given NCDP format the file control codes are non printable. They can only be seen in Notepad++ .


Solution

  • solved it, was using the wrong version of XML because of which control codes were not working for SMOOKS.