Sample code for 30+ languages & platforms
Xojo Plugin

Load XML from a Remote URL

Demonstrates how to load XML from a remote URL, such as https://www.chilkatsoft.com/hamlet.xml

Chilkat Xojo Plugin Downloads

Xojo Plugin
Dim success As Boolean
success = False

// This example assumes the Chilkat HTTP API to have been previously unlocked.
// See Global Unlock Sample for sample code.

Dim http As New Chilkat.Http
Dim sbXml As New Chilkat.StringBuilder

// Download the XML from the URL into sbXml
success = http.QuickGetSb("https://www.chilkatsoft.com/hamlet.xml",sbXml)
If (success = False) Then
    System.DebugLog(http.LastErrorText)
    Return
End If

Dim xml As New Chilkat.Xml

// Load the XML contained in sbXml
success = xml.LoadSb(sbXml,True)
If (success = False) Then
    System.DebugLog(xml.LastErrorText)
    Return
End If

System.DebugLog("Success.")