I'm beginner in vb.net.
Please tell me about all how can i generate xml file from multiple textbox.text in vb.net
i have error in sid"Array bounds cannot appear in type specifiers"
and i have also error in Dim ds.ReadXml(ds) "End of statement expected"
Protected Sub btnChkService_Click(sender As Object, e As EventArgs) Handles btnChkService
Dim cid As Int32
Dim sid As Int32
Dim tid As String
sid = Convert.ToInt32(TxtSiteId.Text)
cid = Convert.ToInt32(TxtCompId.Text)
tid = TxtTokenId.Text
Dim client As ServiceRef.DemoService()
Dim DataSet As client.GetEmployees(sid, cid, tid)
Dim ds As DataSet
'Dim StringReader sr As New StringReader(data)'
'Dim DataSet ds As New DataSet(data)'
Dim ds.ReadXml(ds)
'string st = Server.MapPath("XMLFile.xml")'
Dim Data.WriteXml(Data)
End Sub
DataSetclass - you're trying to declare the method (and you're trying to pass aDataSetas the argument, which you can't do). Can you post both the implementation ofGetEmployees()and the XML you're trying to generate (i.e., what it should look like)?