Examples of XmlFileWriter


Examples of org.jitterbit.xml.XmlFileWriter

    /**
     * Writes the XML data to the given <code>Writer</code>.
     *
     */
    public void store(Writer w) {
        new XmlFileWriter().write(document, w);
    }
View Full Code Here

Examples of org.jitterbit.xml.XmlFileWriter

        Document original = DomParser.parseResource(CONFIG_FILE);
        for (Element f : Elements.matching("/Functions/Category/Function", original)) {
            removeChild(f, "Description");
            removeChild(f, "Example");
        }
        XmlFileWriter writer = new XmlFileWriter();
        writer.write(original, OUTPUT);
    }
View Full Code Here

Examples of org.jitterbit.xml.XmlFileWriter

        }

    }

    private void save() throws Exception {
        new XmlFileWriter().write(dom, xmlFile);
    }
View Full Code Here

Examples of org.jitterbit.xml.XmlFileWriter

        }
        return false;
    }

    private void saveNewLayout(Document dom) throws IOException {
        XmlFileWriter writer = new XmlFileWriter();
        StringWriter xml = new StringWriter();
        writer.write(dom, xml);
        FileResource rc = getResource(copy);
        rc.write(new StringReader(xml.getBuffer().toString()));
    }
View Full Code Here

Examples of org.jitterbit.xml.XmlFileWriter

            } else if (!v3xGrammar.equals(grammar)) {
                System.out.println(String.format("Changing function %s: %s --> %s", name, grammar, v3xGrammar));
                grammarElement.setTextContent(v3xGrammar);
            }
        }
        XmlFileWriter writer = new XmlFileWriter();
        writer.write(dom, new File("Z:\\dev\\tmp\\fcns\\trunk_modified.xml"));
    }
View Full Code Here

Examples of org.jitterbit.xml.XmlFileWriter

            }
        }

        private void save(Document schema, File xsdFile) throws IOException {
            if (changed) {
                XmlFileWriter writer = new XmlFileWriter();
                writer.write(schema, xsdFile);
            }
        }
View Full Code Here

Examples of org.jitterbit.xml.XmlFileWriter

        QualifiedName revisedTypeName = nameFactory.newQualifiedName(qName.getPrefix(), revisedLocalType.getSchemaTypeName());
        return revisedTypeName;
    }

    private void writeResult(File out) throws IOException {
        XmlFileWriter w = new XmlFileWriter();
        w.setIndentNumber(2); // This is what the XML-to-XSD library uses.
        w.write(schema, out);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.