Working with XmlClient

Top  Previous  Next

To use the XML data provided by the XmlBroker component, use the XmlClient component.

 

This component acts like a telnet component and interacts with the other TN Bridge Host Integration Pack emulation components in that way.

 

Its usage can be seen in the following code snippet, which supposes a Form with a Display and a XmlClient components:

 

 VB.NET:

 Private Sub Form_Load(sender As System.Object, eventArgs As System.EventArgs)

  ' associate the XmlClient component instance to the Telnet property of the Display component

   tnDisplay1.Telnet = xmlClient1

 End Sub

 

 Private Sub ShowProducedXml(ByVal Xml As String)

  ' assigning the Xml property will refresh the Display

   xmlClient1.Xml = Xml

 End Sub

 

 C#:

 private void Form_Load(object sender, System.EventArgs e)

 {

  // associate the XmlClient component instance to the Telnet property of the Display component

   tnDisplay1.Telnet = xmlClient1;

 }

 

 public void ShowProducedXml(string Xml)

 {

  // assigning the Xml property will refresh the Display

   xmlClient1.Xml = Xml;

 }