Hi all,
i'd like to use xerces to create my dom. The thing is, i have a schema as a
byte Array, that i 
want to use for validation. How can i tell xerces to use that byte Array as
the schema to use for validation? i'm currently
working with the crimson parser and with this parser it works by telling the
DocumentBuilderFactory to
setAttribute("http://java.sun.com/xml/jaxp/properties/schemaSource",schemaBy
teArrayInputStream)

see http://java.sun.com/webservices/docs/1.0/tutorial/doc/JAXPDOM9.html
(section 'Associating a Document with a Schema') for details on this

As far as i know i can define external Schemas to use in xerces like this:
reader.setProperty("http://apache.org/xml/properties/schema/external-noNames
paceSchemaLocation",String value) 

I have to pass a String with the location of the xsd file. This is (as far
as i know) 
not possible in my case, since i received the Schema as a Byte Array over
the network and i don't want to store it locally. So i don't
have a location to pass, all i can pass is an InputStream.
Anyone has any ideas how to do that, or is it impossible?
Cheers,
tom 


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

Reply via email to