Thanx neil, you were perfectly right! -----Original Message----- From: Neil Delima [mailto:[EMAIL PROTECTED] Sent: Dienstag, 4. Mai 2004 18:09 To: [EMAIL PROTECTED] Subject: Re: Input Stream as External Schema ?
Züblin Thomas <[EMAIL PROTECTED]> wrote on 05/04/2004 11:45:12 AM: > 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) Xerces implements JAXP 1.2 so you should be able to use a byte Array as the schema in a similar way. Make sure your classpath is set correctly and if you're on a 1.4 JDK use the endorsed standards override mechanism[1] to load the correct xml jars. [1]http://java.sun.com/j2se/1.4.2/docs/guide/standards/index.html [2]http://xml.apache.org/xalan-j/faq.html#faq-N100CC --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]