Converts the specified file location to a URL.

When the passed string is a file pathname on the local system, it will be converted to a valid URL.

Example 1:

toURL("C:\\xml\\some.xsd")
returns:
"file:/C:/xml/some.xsd"
Example 2:
toURL("http://www.myorg.org/xml/some.xsd")
returns:
"http://www.myorg.org/xml/some.xml"
Example 3:
toURL("xml\\some.xsd")
returns:
"xml/some.xml"