Package org.jitterbit.integration.json.xml

Examples of org.jitterbit.integration.json.xml.JsonToXmlGenerator


    public void jsonToXml(ConversionParams params, XsdLocator xsdLocator) throws Exception {
        logger.info(String.format("Received request for JSON-to-XML conversion. Transformation ID: %d. JSON file:\"%s\". XML file: \"%s\"",
                        params.getTransformationId(), params.getJsonFile().getAbsolutePath(), params.getXmlFile().getAbsolutePath()));
        params.verifyJsonFileExists();
        JsonToXmlGenerator g = new JsonToXmlGenerator();
        File xsdFile = xsdLocator.getSourceXsd(params.getTransformationId());
        logger.fine("XSD file: " + xsdFile.getAbsolutePath());
        g.setXsdFile(xsdFile);
        g.generateXml(params.getJsonFile(), params.getXmlFile());
        logger.info("The JSON file was converted successfully.");
    }
View Full Code Here

TOP

Related Classes of org.jitterbit.integration.json.xml.JsonToXmlGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.