need to ask, I tried lot of options, but it still do not work properly.
I have a simple XML file which contains this:
<?xml version="1.0" encoding="UTF-8"?>
<messages>
<message>
<title>Hello</title>
<author>John</author>
<text>How are you?</text>
</message>
</messages>
And I need to show only one thing from messages. For example I make this code, but this cannot works at all, I think it will show me some objects but it takes an error.
Here is a code:
Imports System.Xml
Public Class Form1
Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
Dim commands As XmlReader = New XmlTextReader("C:/xampp/test.xml")
MsgBox(commands.ReadContentAsString)
End Sub
End Class
I think taht it will be some while or something, but I do not know the code way... I want to make it really simple only reading.
Thanks for help, hope I have everything well described.
Have a nice day!