XSD from a string in java

Hi all,

I've successfully validated a XML file compared to its XSD file. But for the 
project i'm working on, the xml and XSD information must come from a 
string object instead of a file object.
 
So, i've got 2 strings:
1 containing XML
and 1 containing XSD
 
i've been able to parse an xml-string with
parser.parse(new InputSource(new StringReader(xml)));
 
but i can not find where i can saywhere the XSD must come from...
 
the property http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation 
only accepts files as it's value...
 
is there any other way to realize this ?
 
TIA
	Evyatar

Received on Thursday, 8 August 2002 03:49:23 UTC