The external schema location properties have the same definitions as the ones defined in the schema spec [1]. The value of schemaLocation is a list
of pairs of URIs, where the first of each pair is a target namespace and the second of each pair is a schema location hint. You've only specified one URI. If that worked with Xerces 1.4.4, it had a bug. [1] http://www.w3.org/TR/2004/REC-xmlschema-1-20041028/#schema-loc Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] "Scott Shaver" <[EMAIL PROTECTED]> wrote on 04/20/2006 02:06:22 PM: > > If I set the > > > domParser.setProperty("http://apache.org/xml/properties/schema/external- > schemaLocation",schemaURL); > > schemaURL to "file:///c:/b2b80/riverbed_ship_request.xsd" > > I get > > warning: > http://www.w3.org/TR/xml-schema-1#SchemaLocation?file:///c:/b2b80/riverb > ed_ship_request.xsd Column: 1 Line: 1 PublicID: null > Error: cvc-elt.1: Cannot find the declaration of element > 'shippingRequest'. Column: 201 Line: 2 PublicID: null > > from the validator. This is very confusing why doesn't it just pick up > the schema from the schemLocation setting in the XML document? What is > the point of putting it in there if the parser won't download it? Why > does the 1.4.4 version find the file locally even when I don't specify a > local location for it? Why doesn't 2.8.0 find it at all? This really > shouldn't be that difficult to do. > > > -----Original Message----- > > From: Michael Glavassevich [mailto:[EMAIL PROTECTED] > > > Sent: Thursday, April 20, 2006 11:49 AM > > To: [email protected] > > Subject: RE: Xerces 1.4.4, XML, XSD and validation > > > > > "Scott Shaver" <[EMAIL PROTECTED]> wrote on 04/20/2006 > > > 01:30:35 PM: > > > > > > if I add > > > > > > > > > > domParser.setFeature("http://apache.org/xml/features/validatio > > n/dynamic" > > > ,true); > > > > > > > it claims the validation worked even if I put garbage in the XML. :P > > > > > If it can't find a schema, the parser won't report validation errors. > > > That's what this feature does. > > > > > Michael Glavassevich > > XML Parser Development > > IBM Toronto Lab > > E-mail: [EMAIL PROTECTED] > > E-mail: [EMAIL PROTECTED] > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
