Converts the specified relative URL to the absolute one against the specified context URI (that must be an absolute URL or absolute file pathname).
Parameters:
spec
If this is already an absolute URL, it will be returned unchanged.
context
If there was an error during the parsing of the provided parameter values
(e.g. malformed URL specifications), the original
spec
value will be returned.
The following call:
resolveURL (
"some.xml",
"http://www.myorg.org/xml/some.xsd"
)
"http://www.myorg.org/xml/some.xml"
This call:
resolveURL("some.xml", "c:\\myxml\\some.xsd")
"file:/c:/myxml/some.xml"