JbossWS Tools project depends on XML Schema immensely. There are two subsystems- JavaToWSDL and WSDLToJava.
JavaToWSDL takes in a Service Endpoint Interface(SEI) and generates a WSDL file that can incude one or more XML schema elements. WSDLToJava will read a wsdl document (that includes one or more XML schema elements) and generates a SEI and custom user java classes. The Xerces Parser for Java has a good schema parsing capability and provides an object model to represent the schema. But this is kind of a read only object graph. http://xml.apache.org/xerces2-j/javadocs/xs/index.html : XML Schema API http://xml.apache.org/xerces2-j/javadocs/xerces2 : Xerces 2 Implementation Now I can create XSD Components like Attributes/types/elements. But there is no root object that represents a schema to which I can add these components. An ideal situation would be the following: | XSSchema schema = new XSSchemaImpl(); //THIS IS NOT THERE | //create a type | schema.addXSType(xstype); | | //serialize the schema object graph into a file | This is not possible with the xerces implementation because it is schema to Java only and not vice-versa. I think their guess is it is easier to write a schema using the DOM API. On the other hand, XMLBeans from Apache is a toolkit that can do XML Schema to Java classes. Not vice versa. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3873839#3873839 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3873839 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ JBoss-Development mailing list JBoss-Development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-development