Package org.apache.lenya.xml

Examples of org.apache.lenya.xml.Schema


            xmlDoc = DocumentHelper.readDocument(getSourceDocument().getInputStream());

            if (xmlDoc != null) {
                ResourceType resourceType = getSourceDocument().getResourceType();
                Schema schema = resourceType.getSchema();

                ValidationUtil
                        .validate(this.manager, xmlDoc, schema, new UsecaseErrorHandler(this));

                if (!hasErrors()) {
View Full Code Here


            Configuration schemaConf = config.getChild(ELEMENT_SCHEMA, false);

            if (schemaConf != null) {
                String uri = schemaConf.getAttribute(ATTRIBUTE_URI);
                String language = schemaConf.getAttribute(ATTRIBUTE_NAMESPACE);
                this.schema = new Schema(language, uri);
            }

            // determine the sample content locations.
            Configuration samplesFileConf = config.getChild(ELEMENT_SAMPLES, false);
            if (samplesFileConf != null) {
View Full Code Here

TOP

Related Classes of org.apache.lenya.xml.Schema

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.