The best you can do with XSD is the primitive type called "anyURI". Beyond
that you'll have to write code. You can use the System.Uri class:
try {
Uri uri = new Uri(node.InnerText);
// here you might also want to check the Uri "scheme" to make sure it is
one you accept, like http, https, and file.
} catch (Exception e) {
// then it was a bad URL...
}
"Erik Cruz" <er************@antares.com.br> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
A custom xml file I wrote for my application has two elements that accepts
urls. I used vs.net to generate a schema file for my file but there is no
validation for urls. How can I validate an element to accept valid urls
including https ones?
TIA,
Erik Cruz