Hello Community,
My application gets XML information back from web services. I want to put that information in to a data grid. I have a big problem, however. The out put looks like this
the output should look like this -->
Here a Code Behind look
I am completely new to this, but I learn fast. What am I doing wrong?
My application gets XML information back from web services. I want to put that information in to a data grid. I have a big problem, however. The out put looks like this
VB.NET:
TicketNumber |Summary |Description
820 820 820
Test Summary Test Summary Test Summary
Test Description Test Description Test Description
821 821 821
Test Summary Test Summary Test Summary
Test Description Test Description Test Description
the output should look like this -->
VB.NET:
TicketNumber |Summary |Description
820 Test Summary Test Description
821 Test Summary Test Summary
Here a Code Behind look
VB.NET:
Try
Dim xData As XElement
xData = XElement.Parse(data)
Dim xDataFile As XElement = xData
Dim xDoc As XDocument = New XDocument()
Dim myAttibuteName = From AName In xDataFile...<Attribute> _
Select AName.<AttrName>.Value, AName.<AttrValue>.Value
For Each ANameVal In myAttibuteName
Response.Write("<br/>")
Response.Write(ANameVal.AttrName.ToUpper & ": " & vbTab & ANameVal.AttrValue)
Response.Write(vbCrLf)
Response.Write("<br /> <br />")
myAttibuteName.Distinct()
Next
DataGridView1.DataSource = myAttibuteName.ToList
DataGridView1.DataMember = myAttibuteName.ToString
DataGridView1.DataBind()
Catch ex As XmlException
End Try
I am completely new to this, but I learn fast. What am I doing wrong?
Last edited: