tng 2003/01/06 11:43:49 Modified: c/src/xercesc/validators/schema TraverseSchema.cpp Log: New feature StandardUriConformant to force strict standard uri conformance. Revision Changes Path 1.50 +6 -3 xml-xerces/c/src/xercesc/validators/schema/TraverseSchema.cpp Index: TraverseSchema.cpp =================================================================== RCS file: /home/cvs/xml-xerces/c/src/xercesc/validators/schema/TraverseSchema.cpp,v retrieving revision 1.49 retrieving revision 1.50 diff -u -r1.49 -r1.50 --- TraverseSchema.cpp 3 Jan 2003 20:10:17 -0000 1.49 +++ TraverseSchema.cpp 6 Jan 2003 19:43:49 -0000 1.50 @@ -6130,8 +6130,11 @@ ThrowXML(MalformedURLException, XMLExcepts::URL_NoProtocolPresent); } - - srcToFill = new URLInputSource(urlTmp); + else { + if (fScanner->getStandardUriConformant() && urlTmp.hasInvalidChar()) + ThrowXML(MalformedURLException, XMLExcepts::URL_MalformedURL); + srcToFill = new URLInputSource(urlTmp); + } } catch(const MalformedURLException& e) { // Its not a URL, so lets assume its a local file name if non-standard URI is allowed
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]