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 01:25
Eclipse User
Originally posted by: seely_place.yahoo.com

Hi,

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="http://example.com/library" />

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!

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


Current Time: Wed Jul 30 03:11:55 EDT 2014

Powered by FUDForum. Page generated in 0.01411 seconds