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

Re: XSD from a string in java - how to do this in Xerces-J

From: Bob Schloss <rschloss@us.ibm.com>
Date: Thu, 8 Aug 2002 08:37:19 -0400
To: "Evyatar Kafkafi" <Evyatar@orsus.com>, xmlschema-dev@w3.org
Message-ID: <OFBC5D50A2.4E085B92-ON85256C0F.0044CA72@us.ibm.com>



Questions about Apache Xerces-J and its schema services should be posted to
this mailing list:

You can join that mailing list by sending an e-mail with a subject of
'Subscribe Evyatar Kafkafi' to xerces-j-user-subscribe@xml.apache.org

An archive of that mailing list is here: http://marc.theaimsgroup.com/?

I would also suggest that you search the web for JAXP to see if the JAXP
approach to invoking XML parsers from Java has a standard way of doing


"Evyatar Kafkafi" <Evyatar@orsus.com>@w3.org on 08/08/2002 03:49:16 AM

Sent by:    xmlschema-dev-request@w3.org

To:    <xmlschema-dev@w3.org>
Subject:    XSD from a string in java

Hi all,

I've successfully validated a XML file compared to its XSD file. But for
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-
only accepts files as it's value...

is there any other way to realize this ?

Received on Thursday, 8 August 2002 08:39:04 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 23:15:04 UTC