Examples of globalElements()


Examples of org.apache.xmlbeans.SchemaTypeSystem.globalElements()

        Hashtable<String, XmlObject> xmlInstances = new Hashtable<String, XmlObject>();
        TuscanySampleXmlUtil xmlUtil = new TuscanySampleXmlUtil();
        xmlUtil.setGenerate_sample_data(config.isGenerateSampleData());
        SchemaTypeSystem sts = processXSDSources();
        SchemaType elementType = null;
        for (SchemaGlobalElement globalElement : sts.globalElements()) {
            elementType = getRootElementSchemaType(sts, globalElement.getName().getNamespaceURI(), globalElement.getName().getLocalPart());
            xmlInstances.put(makeQName(globalElement.getName()), XmlObject.Factory.parse(xmlUtil.createSampleForType(elementType)));
        }

        return xmlInstances;
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.