Package com.volantis.mcs.eclipse.common.odom.input

Examples of com.volantis.mcs.eclipse.common.odom.input.VolantisSAXBuilder


                    // Create a non-validating builder. Validation is not
                    // required here since it is the target document that needs
                    // validation and not the clipboard content.
                    // Note that this builder is JRE 1.4 and Eclipse friendly
                    SAXBuilder builder = new VolantisSAXBuilder(false);

                    builder.setFactory(factory);

                    Document document = builder.build(in);

                    Element rootElement = document.getRootElement();


                    List children = rootElement.getChildren();
View Full Code Here


        if (inputStream != null) {

            try {
                // Create a non-validating builder.
                // Note that this builder is JRE 1.4 and Eclipse friendly
                SAXBuilder builder = new VolantisSAXBuilder(false);

                // we require default namespace declarations to be replaced
                // with a prefix binding, the DefaultNamespaceAdapterFilter will
                // do this for us.
                builder.setXMLFilter(new DefaultNamespaceAdapterFilter(
                        MCSNamespace.LPDM.getPrefix()));
                builder.setFactory(factory);
                Document document = builder.build(inputStream);
                odomElement = (ODOMElement) document.getRootElement();
            } finally {
                inputStream.close();
            }
        } else {
View Full Code Here

        Element result = null;
        if (file.exists()) {
            // Create a non-validating builder that uses the Volantisized
            // Xerces.
            // Note that this builder is JRE 1.4 and Eclipse friendly
            SAXBuilder builder = new VolantisSAXBuilder(false);

            // We require default namespace declarations to be replaced
            // with a prefix binding, the DefaultNamespaceAdapterFilter will
            // do this for us.
            builder.setXMLFilter(new DefaultNamespaceAdapterFilter(
                    MCSNamespace.LPDM.getPrefix()));
            builder.setFactory(new LPDMJDOMFactory());

            Document document = builder.build(file);
            result = document.getRootElement();
        }
        return result;
    }
View Full Code Here

TOP

Related Classes of com.volantis.mcs.eclipse.common.odom.input.VolantisSAXBuilder

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.