Whitespace is illegal in URIs; it needs to be percent-encoded if present. See http://www.faqs.org/rfcs/rfc3986.html. Odds are good that you'll need additional massaging to transform a file path to a URI, such as prepending file:/// and converting backslashes to forward slashes. RFC 3986 is the authority, though it is regrettably vague on filesystem URIs.
Xerces may allow you to get away with strings that are technically not URIs. If so, it's up to you to decide whether interoperability with other Oses and/or parsers is important. If it is, make your URIs valid. > -----Original Message----- > From: Elisha Berns [mailto:[EMAIL PROTECTED] > Sent: Sunday, May 22, 2005 9:41 PM > To: Xerces C++ Development > Subject: Handling of schemaLocation attribute > > Does the handling of schemaLocation have a bug or a feature in Xerces > 2.6? > > The schemaLocation attribute whose value syntax is pairs of namespace > names/xsd file locations only works correctly when there are no space > characters in the xsd file location. Is this a bug or a feature? > > Under Win32 I can't predict or count on when the full path to the xsd > filename will have space characters so something seems broken here. > > I experimented with adding either single or double quotes around the > full path to the xsd file, but that doesn't work either. > > What am I missing about how to use schemaLocation and also: > > reader.setProperty(XMLUni::fgXercesSchemaExternalSchemaLocation, ( > void*)strLocation.c_str()); > > works the same way. > > Thanks, > > Elisha Berns > [EMAIL PROTECTED] > tel. (310) 556 - 8332 > fax (310) 556 - 2839 > > > > > --------------------------------------------------------------------- > 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]
