Srinath C wrote:
> 
> Hi,
>   Yes it is possible. You can do something like this :
>         File schemaFile;
>         InputStream xsdFileStream = new FileInputStream(schemaFile);
>         XmlOptions options = new XmlOptions();
>         options.setCompileDownloadUrls();
>         options.setEntityResolver(new
> MyEntityResolver(schemaFile.getParent
> ()));
>         SchemaTypeLoader stl = XmlBeans.loadXsd(new XmlObject[]{
> XmlObject.Factory.parse(xsdFileStream)}, options);
> 
>         Using this "stl" variable you can iterate the entire schema
> structure.
> 

Thanks for hint Sirnath! 
All those data structures used here are bit confusing for me, and I was
playing with tem whole evening without any success. But finaly I've found a
solution here:
http://wiki.apache.org/xmlbeans/XmlBeansFaq#schemaPropertySchemaParticle
After a short analysis, it seems like the code provided there is exactly
what I was looking for!

Once again thanks for good direction ;)

Regards, YelloY

-- 
View this message in context: 
http://www.nabble.com/XML-%3C%3D%3E-JAVA-in-real-time-tf4584808.html#a13105929
Sent from the Xml Beans - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to