Could you please tell me which method to use to parse this document, bind it in java and maybe convert it to a custom XML that is easier to read (Ex: <Order id="xxxx" ><OrderItems><Item>.....)
Should I use edifact parser, edi parser with mapping ...?
--
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/a24c8197-f4c7-4ec0-9224-9150cd62b572n%40googlegroups.com.
Could you please tell me which method to use to parse this document, bind it in java and maybe convert it to a custom XML that is easier to read (Ex: <Order id="xxxx" ><OrderItems><Item>.....)It really depends on your use-case. You'd have to factor in your non-functional requirements like performance, etc... What you suggest is a common pattern. Smooks ingests the EDI into a format that is easier to process but typically one would want to transform/map the data into a structure that can be consumed by the downstream systems. You could also convert the document to custom XML using FreeMarker or some other template engine as shown in the pipelines example instead of binding to Java objects. If you decide on Java binding, you might want to consider binding with JAXB since it would make your life much easier. Note: we're currently implementing a better way to integrate with JAXB from Smooks but I think it will be a few more weeks until we ship this feature.
Should I use edifact parser, edi parser with mapping ...?I'd go for edifact:parser. You can easily adapt the DFDL schemas to any customisations in the implementation guides. I should highlight that edifact/edi:parser are meant for data ingestion; not mapping.
--ClaudeHi Dears,I have to manage a file format in EURITMO standard (ORDERS and INVOICE messages).EURITMO is a standard, italian EANCOM subset (GS1 Italy Subset ex IndicoECR), used in large-scale retail trade.The structure of the user-file is compatible with the structure of the corresponding EANCOM messages, based on the 90.1 and 96.A directories (some records refer to D96A or D90.1 segment and field ... for example NAD3035 = SU) .EURITMO ORDERSdocument is in italian but from page 7 you can see the subset segments and eventually the reference to segment and field of the flat-file based on EANCOM D90.1 or D96.A (that's what I understood). All EURITMO records are fixed length.COMPATIBLE D96A ORDERS (not fixed length records)In attachment you can find a sample orders in EURITMO standard.Could you please tell me which method to use to parse this document, bind it in java and maybe convert it to a custom XML that is easier to read (Ex: <Order id="xxxx" ><OrderItems><Item>.....). Should I use edifact parser, edi parser with mapping ...?Thanks.--
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/a24c8197-f4c7-4ec0-9224-9150cd62b572n%40googlegroups.com.
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/CADvAAujezZAZ4VySUCjkMcqjkTaaskCUWJzjwf0L%2B3%3DdTmD%2Bhg%40mail.gmail.com.