Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » How to parse a schema from an InputStream
How to parse a schema from an InputStream [message #587445] Tue, 25 May 2004 12:14
Eclipse UserFriend
Originally posted by:

How do I parse an XSDSchema from an InputStream instead of a URI? I've
tried to register a special URIConverter that returns the desired
stream, but that itself does not seem to be enough: e.g. somehow the
ability to access the cached XSD schema was lost.
Resource.Factory.Registry.INSTANCE.getExtensionToFactoryMap( ).put( "xsd",
new XSDResourceFactoryImpl());
ResourceSet resourceSet = new ResourceSetImpl();
resourceSet.setURIConverter(new SingletonURIConverter(in,
Resource resource =
resourceSet.getResource(SingletonURIConverter.SINGLETON_URI, true);

Previous Topic:Re: can't generate EMF model from XML Schema using EMF 2.0 on eclipse 3.0M8 [Ye Olde Sun JDK 1.4 / C
Next Topic:How to parse a schema from an InputStream
Goto Forum:

Current Time: Thu Dec 03 02:26:10 GMT 2020

Powered by FUDForum. Page generated in 0.02452 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top