knoaman 2003/09/30 17:27:12
Modified: c/src/xercesc/validators/datatype
AnyURIDatatypeValidator.cpp
Log:
Performance: call a static method to check the validity of URI instead of
creating/deleting local objects.
Revision Changes Path
1.8 +8 -2
xml-xerces/c/src/xercesc/validators/datatype/AnyURIDatatypeValidator.cpp
Index: AnyURIDatatypeValidator.cpp
===================================================================
RCS file:
/home/cvs/xml-xerces/c/src/xercesc/validators/datatype/AnyURIDatatypeValidator.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- AnyURIDatatypeValidator.cpp 30 Sep 2003 21:31:30 -0000 1.7
+++ AnyURIDatatypeValidator.cpp 1 Oct 2003 00:27:12 -0000 1.8
@@ -57,6 +57,10 @@
/*
* $Id$
* $Log$
+ * Revision 1.8 2003/10/01 00:27:12 knoaman
+ * Performance: call a static method to check the validity of URI instead of
+ * creating/deleting local objects.
+ *
* Revision 1.7 2003/09/30 21:31:30 peiyongz
* Implementation of Serialization/Deserialization
*
@@ -218,7 +222,10 @@
//
if (XMLString::stringLen(content))
{
- XMLUri newURI(fTempURI, content, fMemoryManager);
+ if (!XMLUri::isValidURI(fTempURI, content))
+ ThrowXML1(InvalidDatatypeValueException
+ , XMLExcepts::VALUE_URI_Malformed
+ , content);
}
}
catch (...)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]