stevedlawrence commented on issue #3130: NIFI-5791: Add Apache Daffodil 
(incubating) bundle
URL: https://github.com/apache/nifi/pull/3130#issuecomment-471072755
 
 
   @MikeThomsen DFDL/Daffodil aren't really designed or intended to parse XML 
data like PUBS. It's theoretically possible, but it's a pain. Generally we 
reccomend if your data is already in XML then it's beset tod just use one of 
they XML parsers out there. Where Daffodil really shines is when the data isn't 
in XML or some readily accessable format. In that case, Daffodil can be used to 
convert the data to XML so that is is more readily accessable.
   
   Note that often times the XML you get out of of Daffodil doesn't match what 
you soemtimes want, due to restrcitions on how DFDL schemas are written and how 
infoset are represented in XML. For example, MTFXML is a standard that tries to 
describe USMTF data but in a XML format. Daffodil is not able to convert USMTF 
data directly to MTFXML. If that was the goal, one would describe USMTF data 
with a DFDL schema, parse it to an XML representation using Daffodil. and then 
transform that XML to MTFXML via something like XSLT.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to