Is there a better way to verify that a C# string is a valid xs:anyURI than the following?
public bool VerifyAnyURI(string anyUriValue)
{
bool result = false;
try
{
SoapAnyUri anyUri = new SoapAnyUri(anyUriValue);
result = true;
}
catch (Exception)
{
}
return result;
}
This constructor doesn't appear to throw any kind of exception. Is any valid string technically a valid anyURI?