Microsoft XML Core Services (MSXML) 5.0 for Microsoft Office - SAX2 Reference

baseURL Property (Visual Basic)

Sets the base URL for the current document. The baseURL property is stored as a string.

Usage Syntax

For getting the base URL:

strbaseURL = oSAXXMLReader.baseURL

For setting the base URL:

oSAXXMLReader.baseURL = strBaseURL

Return Values

A trappable error if the application tries to set the baseURL property while parsing is in progress.

Example

Dim strURL As String
reader.baseURL = "http://My.web.site/"
strURL = reader.baseURL

Remarks

If a URL does not end with a slash or backslash, the text following the backslash is considered the destination file name. For example, "http://www.microsoft.com/msdn/" sets the base URL to "http://www.microsoft.com/msdn" while "http://www.microsoft.com/msdn" sets the base URL to "http://www.microsoft.com/".

See Also

secureBaseURL Property (Visual Basic)

Applies to: IVBSAXXMLReader Interface