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>

                                                                                                               
                                                                                                               
                                                                                                               


Evyatar,

Questions about Apache Xerces-J and its schema services should be posted to
this mailing list:
xerces-j-user@xml.apache.org

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/?
l=xerces-j-user&r=1&w=2

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
this.

Thanks,
Bob




"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>
cc:
Subject:    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 08:39:04 GMT

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