You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I started using this library hoping to be able to read an ONIX file into Java, make changes, then output my changes to a different file. Jonix makes the first two tasks easy, but there seems to be no support for exporting data directly from the Java classes. I would like to be able to do something like this:
FileoutputFile = newFile("/path/to/output/file.xml");
PrintStreamprintStream = newPrintStream(outputFile);
ONIXWriteronixWriter = newONIXWriter(header, product); // or maybe an ONIXMessageonixWriter.setOnixVersion(3);
onixWriter.setOutputFormat("xml"); // Or JSON, CSV, etconixWriter.setPrintStream(printStream);
onixWriter.write();
The text was updated successfully, but these errors were encountered:
Hi Adam
Exporting back to XML is not something i've seen much demand for. and therefore never included it in my roadmap.
Nevertheless, it isn't too difficult to implement. I might be adding it soon..
Regards
Zach
I started using this library hoping to be able to read an ONIX file into Java, make changes, then output my changes to a different file. Jonix makes the first two tasks easy, but there seems to be no support for exporting data directly from the Java classes. I would like to be able to do something like this:
File outputFile = new File("/path/to/output/file.xml");
PrintStream printStream = new PrintStream(outputFile);
ONIXWriter onixWriter = new ONIXWriter(header, product); // or maybe an ONIXMessage
onixWriter.setOnixVersion(3);
onixWriter.setOutputFormat("xml"); // Or JSON, CSV, etc
onixWriter.setPrintStream(printStream);
onixWriter.write();
—
Reply to this email directly or view it on GitHub.
I have to convert an ONIX 2 format into ONIX 3 and wanted to use your library for that. Is it possible to convert a Onix2-Product (or a BaseProduct) into a Onix3-Product and then somehow generate the XML for the product?
I started using this library hoping to be able to read an ONIX file into Java, make changes, then output my changes to a different file. Jonix makes the first two tasks easy, but there seems to be no support for exporting data directly from the Java classes. I would like to be able to do something like this:
The text was updated successfully, but these errors were encountered: