|
Well, if you know in advance which schema
you want to use and you know where it is stored, here are two examples that
should work on a Windows platform.
<root
xmlns="http://www.yournamespace.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.yournamespace.com "d:/directoryWhereYourSchemaIsStored/nameOfTheSchema.xsd"">
or DocumentBuilderFactory factory =
DocumentBuilderFactory.newInstance();
factory.setAttribute("http://apache.org/xml/properties/schema/external-schemaLocation", "http://yournamespace.com " + "d:/directoryWhereYourSchemaIsStored/nameOfTheSchema.xsd");
For other platform, use a URL form like "file:/
..."
R�gis [Piccand R�gis] -----Original Message----- From: Kumuda Rajarshi [mailto:[EMAIL PROTECTED] Sent: lundi, 22. avril 2002 11:58 To: [EMAIL PROTECTED] Subject: RE: How to store Schema separately and xml separately and still v alidate the xml against the schema
|
<<attachment: ATT03778.gif>>
<<attachment: ATT03779.gif>>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
