W3C home > Mailing lists > Public > xmlschema-dev@w3.org > August 2002

XSD from a string in java

From: Evyatar Kafkafi <Evyatar@orsus.com>
Date: Thu, 8 Aug 2002 10:49:16 +0300
Message-ID: <B17109C0B09CF8409145E629B64EF4FB7386A2@hermes.il.orsus.org>
To: <xmlschema-dev@w3.org>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 11 January 2011 00:14:34 GMT