Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

https://github.com/BerryWorksSoftware/edi-json #24

Open
anar1501 opened this issue Mar 10, 2023 · 0 comments
Open

https://github.com/BerryWorksSoftware/edi-json #24

anar1501 opened this issue Mar 10, 2023 · 0 comments

Comments

@anar1501
Copy link

I saw the following project you did and I really liked a method here. ediToJson.asJson(reader); Is there a way to convert the same from edi to xml? ediToXml.asXml(String ediData); If there is, can you show it because I want to assign it directly to a variable, not to a file. So using the code below needn't for me.
SAXSource source = new SAXSource(createEDIReader(), new InputSource(inputReader));
StreamResult result = new StreamResult(generatedOutput);
TransformerFactory.newInstance().newTransformer().transform(source, result);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant