XMLDocument.Constructor(XML as String)

From Xojo Documentation

Constructor
XMLDocument.Constructor(XML as String)

Parses the passed XML string into the document.

Examples

This example loads the following XML, contained in a constant called kXml, into a new XMLDocument:

 <?xml version="1.0" encoding="UTF-8"?>
 <League>
 	<Team name="Seagulls">
 		<Player name="Bob" position="1B" />
 		<Player name="Tom" position="2B" />
 	</Team>
 	<Team name="Pigeons">
 		<Player name="Bill" position="1B" />
 		<Player name="Tim" position="2B" />
 	</Team>
 	<Team name="Crows">
 		<Player name="Ben" position="1B" />
 		<Player name="Ty" position="2B" />
 	</Team>
 </League>
// Load XML
Dim xml As New XmlDocument
Try
xml.LoadXml(kXml)
Catch e As XmlException
MsgBox("XML error: " + e.Message)
End Try