Asaf, If I understand you right, you have compiled the schema (using scomp), resulting in a jar (containing the generated XMLBeans classes and other artifacts), which is in your runtime classpath, and you want to access the schema document at runtime. The following methods should be helpful to you: http://xmlbeans.apache.org/docs/2.4.0/reference/org/apache/xmlbeans/SchemaComponent.html#getSourceName() http://xmlbeans.apache.org/docs/2.4.0/reference/org/apache/xmlbeans/SchemaTypeLoader.html#getSourceAsStream(java.lang.String) - Wing Yew
________________________________ From: Asaf Lahav [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 25, 2008 6:41 AM To: [email protected]; [EMAIL PROTECTED] Subject: RE: extracting the schema (XSD/WSDL) from xmlbeans in runtime Is it possible to extract the schema document out of the generated XmlBeans? From: Asaf Lahav [mailto:[EMAIL PROTECTED] Sent: Sunday, November 23, 2008 7:30 PM To: '[email protected]' Subject: extracting the schema (XSD/WSDL) from xmlbeans in runtime Hi everybody, Is there a way to extract the XSD or WSDL definition out of an XmlBean in runtime? I would like to be able to extract the schema document used to generate the XmlBeans in runtime. Thanks in advance, Asaf

