You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by Asaf Lahav <as...@gmail.com> on 2008/12/09 09:04:04 UTC

RE: extracting the schema (XSD/WSDL) from xmlbeans in runtime

Hi Wing yen Poon,

Thanks allot. That was exactly what I was looking for.

 

Have a great day.

 

From: Wing Yew Poon [mailto:wing.yew.poon@oracle.com] 
Sent: Tuesday, November 25, 2008 8:16 PM
To: user@xmlbeans.apache.org
Subject: RE: extracting the schema (XSD/WSDL) from xmlbeans in runtime

 

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/SchemaCo
mponent.html#getSourceName()

http://xmlbeans.apache.org/docs/2.4.0/reference/org/apache/xmlbeans/SchemaTy
peLoader.html#getSourceAsStream(java.lang.String)

 

- Wing Yew

 

  _____  

From: Asaf Lahav [mailto:asaf.lahav@gmail.com] 
Sent: Tuesday, November 25, 2008 6:41 AM
To: user@xmlbeans.apache.org; dev@xmlbeans.apache.org
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:asaf.lahav@gmail.com] 
Sent: Sunday, November 23, 2008 7:30 PM
To: 'user@xmlbeans.apache.org'
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