The following sample code retrieves text from a file called Login.xml and uses it to set a value for the sampleUsername variable.

Dim sampleUsername As String

sampleUsername = Session.GetContentFromXML("Login.xml", "username")

The following text shows a portion of a sample Login.xml file. The text shown in bold would be returned to the sampleUsername variable in the example above.