That was it thanks so much, would have been nice if the examples explianed that.
new xml piece: <shippingRequest xmlns="http://foo.comp.com" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://foo.comp.com http://foo.comp.com/downloads/it/schema/riverbed_ship_request.xsd"> and I'm also now setting domParser.setFeature("http://apache.org/xml/features/honour-all-schemaLo cations", true); Thanks again. > -----Original Message----- > From: Michael Glavassevich [mailto:[EMAIL PROTECTED] > Sent: Thursday, April 20, 2006 12:38 PM > To: [email protected] > Subject: RE: Xerces 1.4.4, XML, XSD and validation > > 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/externa > > l- > > 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/rive > > rb 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] > > SPECIAL NOTICE All information transmitted hereby is intended only for the use of the addressee(s) named above and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution of confidential and privileged information is prohibited. If the reader of this message is not the intended recipient(s) or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that you must not read this transmission and that disclosure, copying, printing, distribution or use of any of the information contained in or attached to this transmission is STRICTLY PROHIBITED. Anyone who receives confidential and privileged information in error should notify us immediately by telephone and mail the original message to us at the above address and destroy all copies. To the extent any portion of this communication contains public information, no such restrictions apply to that information. (gate01) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
