Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » 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: 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: Thu Mar 28 14:44:49 GMT 2024

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

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

Back to the top