Java parsing DFDL file as opposed XML files

1.2k Views Asked by At

Is there any standard way to pare a DFDL file using Java. Currently we have a Java program which uses XML files. Now we also want to be able to parse DFDL files. Is there anyway to this in Java? Is there any way to do this with the DFDL and no schema? I've read some things about the difference between DFDL and XML. Is there any I can treat them the the same in Java. Thank...............................!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

1

There are 1 best solutions below

1
On

Try IBM DFDL's Java implementation. You need to download IBM Integration Bus Developer Edition, and extract the jars (documentation explains how to do this). It comes with a SAX sample that makes IBM DFDL look like a SAXReader and you get SAX events to your docHandler callback. It's great for making non-XML data look like XML.