Skip to content

Instantly share code, notes, and snippets.

@zubairov
Created February 14, 2011 10:52
Show Gist options
  • Save zubairov/825730 to your computer and use it in GitHub Desktop.
Save zubairov/825730 to your computer and use it in GitHub Desktop.
Java generated by EDIFACT component
/**
* [tEDIFACTtoXML_1 main ] start
*/
currentComponent = "tEDIFACTtoXML_1";
org.milyn.Smooks smooks_tEDIFACTtoXML_1 = new org.milyn.Smooks();
smooks_tEDIFACTtoXML_1
.setReaderConfig(new org.milyn.smooks.edi.unedifact.UNEdifactReaderConfigurator(
"urn:org.milyn.edi.unedifact:" + "d99a"
+ "-mapping:1.4-SNAPSHOT"));
routines.system.Document d_tEDIFACTtoXML_1 = new routines.system.Document();
try {
java.io.StringWriter writer_tEDIFACTtoXML_1 = new java.io.StringWriter();
smooks_tEDIFACTtoXML_1.filterSource(new javax.xml.transform.stream.StreamSource(
new java.io.FileInputStream(
"C:/99a_cuscar.edi")),
new javax.xml.transform.stream.StreamResult(
writer_tEDIFACTtoXML_1));
d_tEDIFACTtoXML_1.setDocument(org.dom4j.DocumentHelper
.parseText(writer_tEDIFACTtoXML_1.toString()));
} catch (org.milyn.SmooksException sE_tEDIFACTtoXML_1) {
System.err.println(sE_tEDIFACTtoXML_1.getMessage());
} catch (org.dom4j.DocumentException dE_tEDIFACTtoXML_1) {
System.err.println(dE_tEDIFACTtoXML_1.getMessage());
} finally {
smooks_tEDIFACTtoXML_1.close();
}
row1.document = d_tEDIFACTtoXML_1;
tos_count_tEDIFACTtoXML_1++;
/**
* [tEDIFACTtoXML_1 main ] stop
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment