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

XML and XSD from a string in java

From: Michael Mangelschots <michael@orbitone.com>
Date: Wed, 3 Apr 2002 17:39:07 +0200
Message-ID: <8E9CA7087A4E7245B56DBAA7B3461DC901B59C@brain5.arfyes.com>
To: <xmlschema-dev@w3.org>
Greetings,
 
i've been getting into XML schemas since a couple days and 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 ?
 
many thanks
 
Michael
Received on Wednesday, 3 April 2002 10:39:21 GMT

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