Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » XML Schema Definition (XSD) » Using ResourceSet with InputStream rather than URI
Using ResourceSet with InputStream rather than URI [message #597368] Wed, 21 December 2005 06:25
Eclipse UserFriend
Originally posted by:


I would like to load multiple schemas into a ResourceSet
so that I can follow include, import, and redefine
directives and resolve cross-references seamlessly.
The ResourceSet class seems to be based on schemaLocation URIs.
However, I am using schemas where the optional schemaLocation
attribute is not present, nor does the namespace attribute provide
a location for the schema. For example:

<xsd:import namespace="" />

In this case, my application interacts with the user, locates
the schemas using data supplied by the user, and has each of the
schemas in memory as a separate ByteArrayInputStream.

How can I create a ResourceSet using these in-memory InputStreams?
(and still maintain the seamless cross-referencing capability)

Any guidance would be appreciated!

Previous Topic:Attribute vs element in XML serialization
Next Topic:Using ResourceSet with InputStream rather than URI
Goto Forum:

Current Time: Sat Jan 23 02:41:26 GMT 2021

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

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

Back to the top